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 Windows. For example: I ported the Thread Sort demo from Delphi 7 to Lazarus, so I could run it under Linux. Under Linux, the three sort threads run in sequence, where as under Windows, they run in parallel. 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 at the moment) in exactly the same way as I did with Delphi and all is fine. Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal