Answer Posted / rock star
Mutual exclusion (often abbreviated to mutex) algorithms are
used in concurrent programming to avoid the simultaneous use
of a common resource, such as a global variable, by pieces
of computer code called critical sections.
Examples of such resources are fine-grained flags, counters
or queues, used to communicate between code that runs
concurrently, such as an application and its interrupt
handlers. The problem is acute because a thread can be
stopped or started at any time.
To illustrate: suppose a section of code is mutating a piece
of data over several program steps, when another thread,
perhaps triggered by some unpredictable event, starts
executing. If this second thread reads from the same piece
of data, the data, in the process of being overwritten, is
in an inconsistent and unpredictable state. If the second
thread tries overwriting that data, the ensuing state will
probably be unrecoverable. These critical sections of code
accessing shared data must therefore be protected, so that
other processes which read from or write to the chunk of
data are excluded from running.
A mutex is also a common name for a program object that
negotiates mutual exclusion among threads, also called a lock.
Is This Answer Correct ? | 8 Yes | 3 No |
Post New Answer View All Answers
What is diffrent between Method and and function in c#
what are the differences between CONS, LIST, and APPEND
what is difference between object oriented programming structure and object oriented programming system?
Given a cube of size n*n*n (i.e made up of n^3 smaller cubes), find the number of smaller cubes on the surface. Extend this to k-dimension.
how do you generate source code for the automatic generation for receipt number
How to use string functions in QTP?give some examples
How do you pass variables forwrd to future CECI sessions
we create a pf with 3 fields.2 is defined as keyfields.we lock it with alcobj command.how we find out whether the file is locked or not?is it dspfd??/
What is the merger sort principle and its time complexity.
which book we learned this mantis? how many version are realsed this mantis upto now?
Difference between HTML and DHTML?
shall we execute our java programmes in jre
What is web.configuration? how is it work? & wht is use this?
THERE ARE 4 SOURCE FILES WHICH CONTAINS SAME METADATA CREATE A TARGET THAT SHOULD DISPLAY THE FILE NAME ALONG WITH THE RECORD PLEASE SEND THE ANSWERFOR THIS QUESTION WITH MAPPING
what is the diff bw sql direct and jdbc update can't we do select and updating operation in sql direct