What is mutex precisely used for?

Answer Posted / rohil

The mutex (mutually exclusion) variables are used thread
synchroniization and for protecting the shared memory(data
segment) when multiple writes occur

Is This Answer Correct ?    23 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does a 3 tier application differ from a 2 tier one?

491


Discuss the concept of yagni.

473


What is the difference between asynchrony and concurrency?

446


what is the command/instruction in ARM that does not do anything or does not execute any instruction ? (except NOP instruction)

2706


If a system goes blank, how do you debug it?

1393






Tell me is count down_to_zero loop better than count_up_loops?

444


Tell me can we put breakpoint inside isr?

488


Why does pre-emptive multi-threading used to solve the central controller problem?

461


Tell me what is the need for having multibyte data input and output buffers in case of device ports?

422


Can you please explain the difference between mutexes vs semaphores?

447


How does the interrupt architecture works?

502


Do you know what is virtual memory?

419


What is a 'volatile' variable?

475


What is mutex in an embedded system?

447


Tell me why is java mostly used in embedded systems?

435