Re: [fpc-pascal] threading on posix platform

2008-10-20 Thread Vinzent Höfler
Bee wrote: It might be the case, I'm not sure. In my case, sometimes my app (fcgi) couldn't create a new requested thread, but at other times it created successfully. It happened randomly which gave me enough headaches to find what caused the problem. Such case didn't happen on windows. http:/

Re: [fpc-pascal] threading on posix platform

2008-10-20 Thread Bee
In the end (with a few posts to the mailing list), we found out that if a task (thread) is quick or not very CPU intensive, Linux prefers to give them longer timeslices instead of constantly switching threads. That was the only thing I noticed, but other than that, I use threads (although little a

Re: [fpc-pascal] threading on posix platform

2008-10-19 Thread Graeme Geldenhuys
On Mon, Oct 20, 2008 at 7:22 AM, Bee <[EMAIL PROTECTED]> wrote: > Are there any specific things that need to be concerned regarding threading > on posix platform (linux, mac, etc)? Especially their differences with > windows platform. Under Linux the thread scheduler works quite different to Windo