Ask a Question related to FreeBSD, Design and Development.
-
Jonathon McKitrick #1
Blocking on multiple threads with timeout
I have a few threads that might need as long as a minute or more to
complete and terminate. If they exceed an arbitrary time, they can be
canceled.
In Win32, there is a 'wait on multiple objects' call. I'm not sure if it
blocks or spins, but it *does* take a timeout argument.
Is there a similar way with pthreads that I can use that will kill the
threads after a certain time, but without spinlocking? After a minute of
spinning, my laptop fan kicks on, and I'd like to be a bit more reasonable
about my CPU cycle demands. :-)
Jonathon McKitrick
--
My other computer is your Windows box.
Jonathon McKitrick Guest
-
Flash blocking multiple server requests
Hi! The problem is this: if you have an open conection with the server, like, for example, streaming a mp3/flv, Flash simply ignores any other... -
Using a trace function with multiple threads
Hello all, I'd like to know if the set_trace_func function works on a "per thread" basis or if it works globally. I have a multithreaded... -
Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
Gary Why not just change the connection timeout property? Your doing an update statement, which could take various amounts of time depending on... -
Will Thread blocking in read() leads to process blocking?
Hi! Yes, the outcome depends on the threads implementation. However, it is incorrect to believe that a POSIX conformant implementation won't... -
multiple threads read() problems
Hello, I have a multi-threaded echo server designed like so: - there's a main threads and some number of worker threads (threadpool) - main...



Reply With Quote

