counting semaphore using Test&Set

bowrim

Estimable
Aug 18, 2015
2
0
4,510
0
Give pseudocode to indicate how a counting semaphore (not a binary semaphore) can be implemented using a Test&Set() hardware primitive.
 
Thread starter Similar threads Forum Replies Date
Q Apps General Discussion 0
T Apps General Discussion 0
C Apps General Discussion 0
W Apps General Discussion 0
T Apps General Discussion 1
gabriel.leijonhufvud Apps General Discussion 6
B Apps General Discussion 1
V Apps General Discussion 3
henrytcasey Apps General Discussion 1
A Apps General Discussion 1
M Apps General Discussion 3
T Apps General Discussion 2
L Apps General Discussion 1
N Apps General Discussion 2
valentinalucia Apps General Discussion 2
A Apps General Discussion 4
D Apps General Discussion 6
T Apps General Discussion 2
ulillillia Apps General Discussion 6
L Apps General Discussion 12

ASK THE COMMUNITY