본문 바로가기
728x90

전체278

sqlite 파일, 테이블, 쿼리, 업데이트 sqlite로 DB를 구성할 때 다음과 같은 점을 고려 1. 레코드 업데이트 속도는 파일 사이즈에 영향을 덜(?) 받는 거 같다. 2. 레코드 쿼리 속도는 파일 사이즈에 영향을 많이 받는 거 같다. 당연한 건가? ㅡ.ㅡ 2011. 5. 18.
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.
728x90