Re: Problems with Windows threads and cygwin sleep()

2005-09-19 Thread Raul Metsma
Raul Metsma wrote: http://rtedev.com/~raul/threads/threads.c Compile this program under mingw gcc -o threads.exe threads.c ./threads 600 now compile http://rtedev.com/~raul/threads/main.c with cygwin and when I execute this, then threads.exe will eat 100% CPU Is there any chance get this

Re: Problems with Windows threads and cygwin sleep()

2005-08-29 Thread Raul Metsma
windows Sleep() call, then does not occur this issue. Could this be nanosleep() bug or something deeper? Raul Metsma -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.

Re: who is setting the NAME variable in bash?

2005-08-25 Thread Raul Metsma
I can figure out who's setting NAME? I want to make them stop. Search from bashrc scripts "PS1" variable Raul Metsma -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin

Re: Problems with Windows threads and cygwin sleep()

2005-08-25 Thread Raul Metsma
You're on W2K, I'm on XP, maybe there's a difference? I can easily reproduce nearly 0% CPU with 1000 threads if no Cygwin process is present and nearly 99% if a Cygwin process is present. I have XP SP2 laptop and it occures on 200 threads Raul Metsma -- Unsubscribe

Re: Problems with Windows threads and cygwin sleep()

2005-08-25 Thread Raul Metsma
Seems this is something related CPU-s or total Windows thread count I tested it on Windwos 2003, where are 2x2,4GHz Intel Xeon There occurs this issue on 800 threads Maybe is this something related with OS? Raul Metsma Corinna Vinschen wrote: On Aug 25 12:30, Raul Metsma wrote: Ohh never get

Re: Problems with Windows threads and cygwin sleep()

2005-08-25 Thread Raul Metsma
execute this, then threads.exe will eat 100% CPU Raul Metsma Pavel Tsekov wrote: Hello, On Thu, 25 Aug 2005, Raul Metsma wrote: Sorry no Makefile based project, but in Visual C http://rtedev.com/~raul/threads/Threads.zip By doing this you are seriously reducing the chance that someone will

Re: Problems with Windows threads and cygwin sleep()

2005-08-24 Thread Raul Metsma
lly my CPU usage starts crowing from 200 threads. Seems like this depends total running threads. And again when I compile this while loop with winapi Sleep() then the first program uses 2-3% CPU. Raul Metsma Jason Pyeron wrote: On Wed, 24 Aug 2005 [EMAIL PROTECTED] wrote: how about 6 windows 20

Problems with Windows threads and cygwin sleep()

2005-08-24 Thread Raul Metsma
seems to be still same issue. Maybe cygwin uses inside dll sleep? I really hope to get this issue fixed Raul Metsma -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ