Re: Why only 2,000 simultaneous threads ?
From: John Bailo (jabailo_at_earthlink.net)
Date: 11/27/04
- Next message: Jeff_Relf: "Re: Why only 2,000 simultaneous threads ?"
- Previous message: KlikThis: "Re: insert picture into document from research pane"
- In reply to: Jeff_Relf: "Why only 2,000 simultaneous threads ?"
- Next in thread: Jeff_Relf: "Re: Why only 2,000 simultaneous threads ?"
- Reply: Jeff_Relf: "Re: Why only 2,000 simultaneous threads ?"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 27 Nov 2004 01:09:53 GMT
Jeff_Relf wrote:
> instead of: while ( ! Go ) Sleep( 0 );
Yes, it's about 250ms in java for 2000 threads.
Here's the part that doesn't seem write for me, just in terms of your
technique.
When running in the debugger with breakpoints, what I see is that the
threads, naturally stop themselves once the global var is set to true.
This seems to happen even before the .join on the members of the thread
array.
Doesn't it make more sense to have the threads "do something" and then join
them in order to stop them in the main thread?
-- http://www.texeme.com
- Next message: Jeff_Relf: "Re: Why only 2,000 simultaneous threads ?"
- Previous message: KlikThis: "Re: insert picture into document from research pane"
- In reply to: Jeff_Relf: "Why only 2,000 simultaneous threads ?"
- Next in thread: Jeff_Relf: "Re: Why only 2,000 simultaneous threads ?"
- Reply: Jeff_Relf: "Re: Why only 2,000 simultaneous threads ?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|