In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
The so-called Stop the World mechanism, or STW for short, means that when the garbage collection algorithm is executed, all other threads of the Java application except the garbage collector thread are suspended.
At this point, the system can only allow the GC thread to run, and all the other threads will be paused and wait for the GC thread to finish execution before running again.
These tasks are initiated and completed automatically by the virtual machine in the background, which stops all the threads that the user is working normally when the user is invisible, which is unacceptable for many applications, especially those programs that require high real-time performance.
In addition to garbage collection, there are other actions that trigger STW.
CMS collector: (- XX:+UseConcMarkSweepGC): used to recycle the older generation.
Serial collection and parallel collection need to pause the entire running environment during garbage collection, so the system will have an obvious pause during garbage collection, and the pause time will be longer as the heap is larger.
The concurrent collector can ensure that most of the work is executed concurrently and the application is not paused. This garbage collector is suitable for minimizing the pause time of the application, reducing the probability of full gc occurrence, using the garbage collection thread concurrent with the application thread to mark the cleaning older generation, suitable for systems with priority response time (more commonly used, suitable for larger systems).
CMS does not have no pauses, but replaces the long pauses of the serial tag collation algorithm with two short pauses.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.