Open orzhang opened 7 years ago
goroutine use number of CPU to run as simultaneously. However, we didn't consider the thread safe issue. We should simply use 1 CPU to dispatch the gorutine to avoid this issue and then use channel and mutex to enhance it.
goroutine use number of CPU to run as simultaneously. However, we didn't consider the thread safe issue. We should simply use 1 CPU to dispatch the gorutine to avoid this issue and then use channel and mutex to enhance it.