728x90 Research245 pthread_cond_wait pthread_cond_wait()은 쓰레드가 휴면상태가 되도록 한다. 휴면상태는 pthread_cond_signal()이라는 함수를 통해 깨울 수 있다. pthread_cond_wait()은 두개의 인자가 들어가는데, 첫번째는 조건변수(conditional variable) 이고 두번째는 잠겨진 mutex이다. 조건변수는 pthread_cond_signal()의 인자로 사용되어 진다. pthread_cond_wait()가 호출되면 내부적으로 mutex를 잠금 해제하고 쓰레드 실행을 중지시킨다. pthread_cond_wat()의 이러한 내부 작동은 언제나 함께 발생(atomic)한다. 이들 사이에 실행되는 쓰레드는 없다. 또 다른 쓰레드가 pthread_cond_signal()을 호출하면 조건 변수를 .. 2011. 5. 11. runtime control of printk times source URL: http://elinux.org/Printk_Times You can enable and disable printk timestamps at runtime, by writing to /sys/module/printk/parameters/time. # cat /sys/module/printk/parameters/time N # echo 1 >/sys/module/printk/parameters/time # cat /sys/module/printk/parameters/time Y # echo "sample log message" >/dev/kmsg # dmesg | tail .... [3814526.197336] sample log message 2011. 4. 22. Worker Thread in Qt using Signals & Slots origin URL : http://cdumez.blogspot.com/2011/03/worker-thread-in-qt-using-signals-slots.html Saturday, March 12, 2011 Worker Thread in Qt using Signals & Slots Qt provides platform-independent threading classes, a thread-safe way of posting events, and signal-slot connections across threads. Multithreaded programming allows taking advantage of multiprocessor machines and it is also useful to per.. 2011. 4. 12. How to tweak VMware Workstation in linux host How to tweak VMware Workstation in linux host Posted by: nirjhar in VMware Add Comment I use Debian as my primary OS. I have Windows XP installed in one of my partition but that is for only to satisfy my gaming need. My study needs certain things that require Windows. So, I am using VMware Workstation inside my Debian box to host Windows. Currently I have four virtual machines running through VM.. 2010. 6. 17. 이전 1 ··· 12 13 14 15 16 17 18 ··· 62 다음 728x90