EmbLogic's Blog

Character Device Driver : Semaphore

implementation of  semaphore in kernel.

There are using three application at user level.

In 1st application three threads using for Open,Write and close.

in 2nd application three threads using for Open,read and close.

And last application is same as 2nd app.

thread semaphore is also used for synchronize the operation in every single application.

At Kernel level: when file open in Read-only mode it wait for completion of write operation then after semaphore release to access by both reader.

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>