Pengetahuan Kernel (18) – Struktur Data Linux (18) – Semaphores

Semaphores diguankan untuk melindungi struktur data dan wilayah kode yang kritis.

[sourcecode language=”cpp”]
struct semaphore {
int count;
int waking;
int lock ; /* to make waking testing atomic */
struct wait_queue *wait;
};
[/sourcecode]
Sumber : tldp.org

Be the first to comment

Leave a Reply

Your email address will not be published.


*