일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Python
- Italy
- Java
- Linux
- hbase
- Malaysia
- Kuala Lumpur
- erlang
- agile
- program
- hadoop
- Book
- comic agile
- MySQL
- django
- psychology
- management
- France
- programming_book
- Software Engineering
- Book review
- web
- RFID
- QT
- Spain
- essay
- leadership
- history
- Programming
- ubuntu
- Today
- Total
목록pthread_join (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..