From: Gilles C. <Gil...@bu...> - 2008-03-06 13:01:05
|
I made a mistake in the comment. Main thread is the writer. So instead, it should be: This fixes this deadlock/race condition: 1. busy threads run until main thread exits 2. main thread is writing samples results into files and waits for a filesystem global lock to be released 4. sync threads (kjournald, pdflush) with non-rt prio hold the above mentioned lock and cannot finish their job because cpu is hogged by busy threads. Gilles. Gilles Carry wrote: > This flag is set by timer_thread when the sampling is finished. > This fixes this deadlock/race condition: > 1. busy threads run until main thread exits > 2. main thread waits for timer_thread to finish > 3. timer_thread is writing samples results into > files and waits for a filesystem global lock to be released > 4. sync threads (kjournald, pdflush) with non-rt prio hold > the above mentioned lock and cannot finish their job because > cpu is hogged by busy threads. > |