Unix Programming
田园诗人之园
我是一位平凡的诗人,也是一位平凡的工程师。
展开
-
unix/linux - select and pselect Functions
select and pselect Functions1, select and pselect Functions2, man manual of select1, select and pselect Functions2, man manual of select1, select and pselect Functions2, man manual of select1, select and pselect FunctionsThe select function lets us do原创 2020-11-18 23:39:31 · 422 阅读 · 1 评论 -
unix/linux - poll
The poll function is similar to select, but the programmer interface is different. Thisfunction was originally introduced in System V to support the STREAMS subsystem,but we are able to use it with any type of file descriptor.#include <poll.h>int原创 2020-11-18 18:45:38 · 264 阅读 · 0 评论 -
Threads Condition Variables
Condition variables are another synchronization mechanism available to threads. Thesesynchronization objects provide a place for threads to rendezvous. When used withmutexes, condition variables allow threads to wait in a race-free way for arbitrarycond原创 2020-06-20 16:12:22 · 268 阅读 · 0 评论