|
From: Daniel B. <nb...@ja...> - 2001-05-16 18:53:41
|
On linux 2.2.x: With a MultiThreader() daemontest, is there a concurrency issue with the handleConnection() code? I.e. does the for() i integer have a race condition? Or is there a seperate copy of the TestDaemon class object running in each thread and so is thread-safe? Also I thought that sleep() caused the entire process to sleep and you needed to call a pthread sleep? BTW, I understand linux threads are seperate light-weight processes so by process in the last question I mean a POSIX type thread. I.e. the collection of threads. I hope I'm using the correct jargon for these questions! I'm new to the concepts of multi-threading. Thanks -- Daniel Barron (Visit http://dansguardian.org/ - True web content filtering) |