Concurrent programming shortcomings?

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/meism5/article/details/100068495

Concurrent programming shortcomings?

1, the corresponding Java thread is an operating system-level threads, the number of threads poorly controlled, frequently create, destroy and switch between threads thread, more consumption of memory and time.

2, easy to bring security thread. As the visibility of the thread, orderly, atomicity issues, the program will lead to the expected results appear inconsistent results.

3, multi-threaded likely to cause a deadlock, live lock, thread starvation and other issues. Such problems are often only by manually stop the thread, the process can be resolved or even seriously affected.

4, high technical requirements for programmers to write correct concurrent programs is not easy.

5, concurrent program is easy to go wrong, and difficult to debug and troubleshoot; problems often appear strange, yet strangely disappeared.

 


Collect and share the most valuable programming information 

Personal blog   |   Public Number   |   GitHub   |   code cloud 

 

Guess you like

Origin blog.csdn.net/meism5/article/details/100068495