单选题:Hope the server limits its number to be concurrently connected n
Hope the server limits its number to be concurrently connected no more than N clients. One solution will be____.@[A](1)
A. A semaphore for resource sharing purpose, with the initial value N
B. A semaphore for resource sharing purpose, with the initial value 1
C. A semaphore for synchronization purpose, with the initial value N
D. A semaphore for synchronization purpose, with the initial value 1
A.A semaphore for resource sharing purpose, with the initial value N
B.A semaphore for resource sharing purpose, with the initial value 1
C.A semaphore for synchronization purpose, with the initial value N
D.A semaphore for synchronization purpose, with the initial value 1
答案:A
A. A semaphore for resource sharing purpose, with the initial value N
B. A semaphore for resource sharing purpose, with the initial value 1
C. A semaphore for synchronization purpose, with the initial value N
D. A semaphore for synchronization purpose, with the initial value 1
A.A semaphore for resource sharing purpose, with the initial value N
B.A semaphore for resource sharing purpose, with the initial value 1
C.A semaphore for synchronization purpose, with the initial value N
D.A semaphore for synchronization purpose, with the initial value 1
答案:A