討論串[問題] pthread問題
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓3(3推 0噓 6→)留言9則,0人參與, 最新作者justinC (無)時間15年前 (2009/08/07 23:22), 編輯資訊
0
0
0
內容預覽:
網路上看到一個範例,如下. void print_message_function( void *ptr );. main(). {. pthread_t thread1, thread2;. char *message1 = "Hello";. char *message2 = "World";.
(還有493個字)

推噓1(1推 0噓 3→)留言4則,0人參與, 最新作者justinC (無)時間15年前 (2009/08/08 13:38), 編輯資訊
0
0
1
內容預覽:
→ sunneo:XD" 的確有糟糕的感覺 08/08 11:27→ sunneo:sleep不是暫停的訊號啊~~他是把current thread suspend 08/08 11:28→ sunneo:且會有個timer在時間到時把thread resume 08/08 11:29. 我是參考下
(還有344個字)

推噓3(3推 0噓 0→)留言3則,0人參與, 最新作者sunneo (艾斯寇德)時間15年前 (2009/08/08 14:38), 編輯資訊
0
0
0
內容預覽:
這是其中一個版本,也就是只影響thread的. ( POSIX Programmer's Manual (P) Updated: 2003 ). The sleep() function shall cause the calling thread to be suspended from. exe
(還有1038個字)
首頁
上一頁
1
下一頁
尾頁