What is “non-blocking” concurrency and how is it different than normal concurrency?

前端 未结 8 980
滥情空心
滥情空心 2021-01-30 02:26
  1. What is \"non-blocking\" concurrency and how is it different than normal concurrency using threads? Why don\'t we use non-blocking concurrency in all the scenarios where
8条回答
  •  走了就别回头了
    2021-01-30 02:51

    1) Non-blocking synchronization means that the risk of deadlocks is removed. No one thread will wait to get a lock held by another thread "forever".

    2) More on non-blocking synchronization algorithms in java.

提交回复
热议问题