单选题:POSIX标准的Pthread信号量机制中相当于“wait或P操作”的API函数是___ 。
POSIX标准的Pthread信号量机制中相当于“wait或P操作”的API函数是___ 。@[C](1)
A. pthread_post()
B. pthread_wait()
C. sem_wait()
D. sem_ post()
A.pthread_post()
B.pthread_wait()
C.sem_wait()
D.sem_ post()
答案:C
A. pthread_post()
B. pthread_wait()
C. sem_wait()
D. sem_ post()
A.pthread_post()
B.pthread_wait()
C.sem_wait()
D.sem_ post()
答案:C