Hello Jesper,
You told that nothing will stop the process if it wants to neglect the lock and can execute the code segment . Then if a situation arises that some process which is in the kernel mode can easily
destroy the data integrity of the data which is being protected by semaphores and kernel may crash.
Is their any way to avoid this, and is it possible for me to implement mandatory locking mechanism using semaphores?. And what may be the over heads if it is implemented in this way?. And is it worth implementing mandatory lock mechanism using semaphores?.
RegardsYou told that nothing will stop the process if it wants to neglect the lock and can execute the code segment . Then if a situation arises that some process which is in the kernel mode can easily
destroy the data integrity of the data which is being protected by semaphores and kernel may crash.
Is their any way to avoid this, and is it possible for me to implement mandatory locking mechanism using semaphores?. And what may be the over heads if it is implemented in this way?. And is it worth implementing mandatory lock mechanism using semaphores?.
Badari.
--
Regards,
Badari.