일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
- QT
- MySQL
- Italy
- history
- France
- django
- program
- Software Engineering
- Spain
- Java
- psychology
- web
- ubuntu
- RFID
- Linux
- programming_book
- erlang
- Book review
- Kuala Lumpur
- leadership
- Malaysia
- Python
- Book
- agile
- hbase
- comic agile
- Programming
- management
- hadoop
- UK
- Today
- Total
목록pthread_exit (2)
java의 Atomic* 같은 타입이 당연히 없으므로, thread마다 각각 할당해서 넘겨줬음 #include #include #include #include pthread_tthreads[5]; intdone[5]; void* thread_main(void*); typedef struct { intm_iThreadNum; charm_cChar; long**m_pplValues; }ThreadArg; //http://www.joinc.co.kr/modules/moniwiki/wiki.php/Site/Thread/Beginning/Example_pthread //gcc -o pthread1 pthread1.c -lpthread int main(void) { inti, j, k, rc, status; Thr..
//pthread1.c #include #include #include pthread_tthreads[5]; intdone[5]; void* thread_main(void*); //http://www.joinc.co.kr/modules/moniwiki/wiki.php/Site/Thread/Beginning/PthreadApiReference //http://www.joinc.co.kr/modules/moniwiki/wiki.php/Site/Thread/Beginning/Example_pthread //gcc -o pthread1 pthread1.c -lpthread int main(void) { inti, rc, status; printf("pid = %d\n", getpid()); for ( i = 0..