PPT Slide
SEMAPHORES IN ENTRY/ACCEPT
task SEMAPHORE is
entry P ;
entry V ;
end ;
task body SEMAPHORE is
begin
loop
accept P ;
accept V ;
end loop ;
end ;
each task has an associated
entry queue for waiting calls
that have not yet been serviced
calls for each entry name
are handled FIFO.
Note possibility of generic
task SEMAPHORE
Previous slide
Next slide
Back to first slide
View graphic version