Slideshow

Saturday, 29 September 2012


WHAT DO U MEAN BY SEMAPHORE,MUTEX?



 SEMAPHORE:SEMAPHORE IS THE MAIN THING THAT HAS TO CONSIDERED BY OPERATING SYSTEM FOR TASK SYNCHRONIZATION AND RESOURCE SYNCHRONIZATION FOR EXAMPLE ,TWO DEVICES WANTS TO WRITE DISPLAY IE FIRST DEVICE WANT TO WRITE I AM GOOD BOY . AND SECOND WANT TO WRITE I AM BAD GIRL , IF RESOURCE SYNCHRONIZATION NOT TAKEN PLACE THE OUTPUT MAYBE SOMETHING I BAD GOOD.......RUBBISH NOT CORRECT ,SO WE REQUIRE TASK AND RESOURCE SYNCHRONIZATION. MUTEX IS ALSO USED FOR SAME PURPOSE FOR TASK AND RESOURCE SYNCHRONIZATION , WHEN OS CONSIDERS MUTEX PROCESS ,WITH MUTEX CAN ACT AS OWNERSHIP,CAN BE OPERATED IN LOCKED OR UNLOCKED MODE. BINARY MUTEX HAS INTERNAL STATES IS 2 AND MUTEX HAS 2 INTERNAL STATES AND COUNTING SEMAPHORE HAS N INTERNAL STATES.

No comments:

Post a Comment