20.01.2014 Views

Interfaces, channels and ports

Interfaces, channels and ports

Interfaces, channels and ports

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

sc_semaphore<br />

• It is a channel used to h<strong>and</strong>le the case when there can be more<br />

copies or owners for one resource<br />

• A mutex can be considered a semaphore with a count of one<br />

• When creating an sc_semaphore object, it is necessary to specify<br />

how many are available<br />

• An sc_semaphore access consists of waiting for an available<br />

resource <strong>and</strong> then posting notice when finished with the<br />

resource (compare to sc_mutex)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!