How can you create a deadlock using Mutual exclusion?

Please provide the "Mutual exclusion" method of creating a deadlock?
Add a comment

7 replies

"Mutual exclusion : At least one resource must be held in a non-sharable mode; that is, only one process at a time can use the resource. Source:"
Add a comment
"The mutex attributes object is initialized to default values by the pthread_mutexattr_init subroutine. The attributes are handled by subroutines. The thread attributes object is destroyed by the pthread_mutexattr_destroy subroutine. This subroutine may release storage dynamically allocated by the pthread_mutexattr_init subroutine, depending on the implementation of the threads library. "
Add a comment