#Deadlock
1 articles
Knowing Deadlock and How to Overcome It in Golang
Introduction
One of the problems that occurs when using concurrent
or parallel
is the deadlock
system. What is deadlock? Deadlock is an event where a concurrent process or goroutine waits for each other (lock) so that none of the goroutines can run. So be careful if you create an application or program that implements mutex lock and unlock using goroutines. Well we will try directly how to simulate the golang program when there is a deadlock
.