Here's the problem,
1. aplication A , enters criticla section. It does Ctrl^C before lock is released
2. application B tries to acquire lock and waits forever since the lock is never release by appln A and it was killed.
See robust mutexes that may interest you. The option PTHREAD_MUTEX_ROBUST (http://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_mutexattr_getrobust.html) may handle the problem you are talking
Little introduction about CP:
CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow:
cp /myfoder /pathto/destination/folder/
cp abc.tar.gz /pathto/destination/folder/ab…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
Learn how to navigate the file tree with the shell.
Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…