Click here to Skip to main content
15,898,134 members
Home / Discussions / C#
   

C#

 
GeneralRe: Problems with generic list data structure Pin
leppie7-Jul-08 21:00
leppie7-Jul-08 21:00 
AnswerRe: Problems with generic list data structure Pin
N a v a n e e t h7-Jul-08 21:32
N a v a n e e t h7-Jul-08 21:32 
QuestionSetup and deployment for windows application Pin
vishnukamath7-Jul-08 18:03
vishnukamath7-Jul-08 18:03 
AnswerRe: Setup and deployment for windows application Pin
Rutvik Dave8-Jul-08 8:56
professionalRutvik Dave8-Jul-08 8:56 
QuestionPerformance Related bug in C# code Pin
Tina P7-Jul-08 17:56
Tina P7-Jul-08 17:56 
AnswerRe: Performance Related bug in C# code Pin
Ashfield7-Jul-08 21:09
Ashfield7-Jul-08 21:09 
GeneralRe: Performance Related bug in C# code Pin
Tina P7-Jul-08 21:21
Tina P7-Jul-08 21:21 
AnswerRe: Performance Related bug in C# code Pin
Harvey Saayman7-Jul-08 21:20
Harvey Saayman7-Jul-08 21:20 
i think that the list being static is the bottle neck...

static means "only a single copy of that member can exist at any given time, regardless of how many copies of a class are instantiated".

what i think is happening is thread A, B and C start the method 1ms after each other for arguments sake. let say the method takes 1000ms to complete.

thread A will get access to that static object but B and C will have to wait for A to finish its work with it before B and C may access it. so you expect 1000ms for the three threads to complete the task but now that they have to wait for each other its taking 3000ms.

im not sure if im right but its what makes sense to me, hope it helps

BTW, please use PRE tags when posting code... no one wants to read non-indented code

Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL

you.suck = (you.passion != Programming)

GeneralRe: Performance Related bug in C# code Pin
Tina P7-Jul-08 21:28
Tina P7-Jul-08 21:28 
GeneralRe: Performance Related bug in C# code Pin
Harvey Saayman7-Jul-08 21:40
Harvey Saayman7-Jul-08 21:40 
GeneralRe: Performance Related bug in C# code Pin
Ashfield7-Jul-08 22:12
Ashfield7-Jul-08 22:12 
GeneralRe: Performance Related bug in C# code Pin
mav.northwind7-Jul-08 22:33
mav.northwind7-Jul-08 22:33 
GeneralRe: Performance Related bug in C# code Pin
Ashfield7-Jul-08 22:38
Ashfield7-Jul-08 22:38 
QuestionQuery regarding IEnumerable [modified] - Stupid question Pin
dan!sh 7-Jul-08 17:55
professional dan!sh 7-Jul-08 17:55 
AnswerRe: Query regarding IEnumerable Pin
PaulLinton7-Jul-08 18:54
PaulLinton7-Jul-08 18:54 
GeneralRe: Query regarding IEnumerable Pin
dan!sh 7-Jul-08 19:06
professional dan!sh 7-Jul-08 19:06 
GeneralRe: Query regarding IEnumerable Pin
PIEBALDconsult8-Jul-08 4:29
mvePIEBALDconsult8-Jul-08 4:29 
AnswerRe: Query regarding IEnumerable Pin
PIEBALDconsult7-Jul-08 18:54
mvePIEBALDconsult7-Jul-08 18:54 
AnswerRe: Query regarding IEnumerable [modified] - Stupid question Pin
N a v a n e e t h7-Jul-08 21:34
N a v a n e e t h7-Jul-08 21:34 
QuestionIntegrate desktop application with browser??? Pin
Technobizz7-Jul-08 17:50
Technobizz7-Jul-08 17:50 
AnswerRe: Integrate desktop application with browser??? Pin
Kjetil Svendsen7-Jul-08 20:36
Kjetil Svendsen7-Jul-08 20:36 
QuestionWindows Service Question Pin
Richard Blythe7-Jul-08 17:06
Richard Blythe7-Jul-08 17:06 
AnswerRe: Windows Service Question Pin
PIEBALDconsult7-Jul-08 17:41
mvePIEBALDconsult7-Jul-08 17:41 
QuestionWhy won't the clipboard work in this itunes event handler? Pin
Nitrus7-Jul-08 17:01
Nitrus7-Jul-08 17:01 
GeneralRe: Why won't the clipboard work in this itunes event handler? Pin
TheFM2347-Jul-08 17:34
TheFM2347-Jul-08 17:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.