What is a deadlock in the context of multithreading?

  • A process terminates unexpectedly
  • A situation where two or more processes wait indefinitely for resources held by each other
  • A thread accesses a resource without permission
  • A thread executes slower than expected
A deadlock occurs in multithreading when two or more threads are unable to proceed because each is waiting for the other to release a resource, resulting in a standstill where no progress can be made. This can lead to system hangs or crashes.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *