Tag:Thread

  • Will the java thread pool automatically shut down?

    Time:2020-5-25

    First, we need to understand when the thread pool will shut down automatically.ThreadPoolExecutorClass (this is our most commonly used thread pool implementation class) has the following sentence in the source code annotation: A pool that is no longer referenced in a program and has no remaining threads will be shutdown automatically. A thread pool that […]

  • Problems encountered in angularjs project and notes

    Time:2020-5-25

    1、 Open the project with vscode after git clone, executenpm run startWrong times gulp[10500]: c:\ws\src\node_contextify.cc:635: Assertion `args[1]->IsString()’ failed. 1: 00007FF7106AD1BA v8::internal::GCIdleTimeHandler::GCIdleTimeHandler+4506 2: 00007FF710687F96 node::MakeCallback+4534 3: 00007FF71068804F node::MakeCallback+4719 4: 00007FF71065C460 node::DecodeWrite+13120 5: 00007FF710BB5212 std::vector<v8::internal::compiler::MoveOperands * __ptr64,v8::internal::ZoneAllocator<v8::internal::compiler::MoveOperands * __ptr64> >::_Umove+79442 6: 00007FF710BB6379 std::vector<v8::internal::compiler::MoveOperands * __ptr64,v8::internal::ZoneAllocator<v8::internal::compiler::MoveOperands * __ptr64> >::_Umove+83897 7: 00007FF710BB56BC std::vector<v8::internal::compiler::MoveOperands * __ptr64,v8::internal::ZoneAllocator<v8::internal::compiler::MoveOperands * __ptr64> >::_Umove+80636 8: […]

  • Process management and control notes [operating system]

    Time:2020-5-23

    (1) Program concurrency (1) Sequential and concurrent execution The program can be executed in two ways:① Sequential execution ② concurrent execution Sequential executionThe execution mode of single channel batch processing is also used in a simple single chip microcomputer system. A program with independent functions monopolizes the CPU until the final result is obtained Concurrent […]

  • Java socket practice

    Time:2020-5-22

    Socket communication based on TCP connection TCP protocol provides reliable data transmission service by establishing TCP connection. The two ends of a “TCP connection” connection are two processes running on two hosts on the Internet, one is the sending process and the other is the receiving process. Each process is uniquely determined by a socket […]

  • A glimpse of modern browser architecture (1)

    Time:2020-5-22

    preface This paper is a translation of the series of inside look at modern web browser written by Mario Kosaka. The translation here does not refer to literal translation, but expresses the author’s intended meaning in combination with personal understanding, and will try to supplement some relevant content to help you better understand. CPU, GPU, […]

  • Solutions to cache penetration, cache breakdown, cache avalanche and hot data failure

    Time:2020-5-19

    1. The business process when we use cache is as follows: When we query a piece of data, we first query the cache. If there is a cache, we directly return it. If there is no cache, we query the database, and then return it. In this case, the following phenomena may appear. 2. Cache […]

  • C × TCP / IP protocol uses simple socket communication

    Time:2020-5-19

  • Analysis of Python thread condition variable condition principle

    Time:2020-5-19

    This article mainly introduces the principle analysis of Python thread condition variable condition. The example code is introduced in detail in this article, which has certain reference value for your study or work. You can refer to the following for your friends The condition object is a conditional variable, which is always associated with some […]

  • A glimpse of modern browser architecture (2)

    Time:2020-5-19

    preface This paper is a translation of the series of inside look at modern web browser written by Mario Kosaka. The translation here does not refer to literal translation, but expresses the author’s intended meaning in combination with personal understanding, and will try to add some relevant content to help you better understand. What happened […]

  • Common problems in learning Webflux

    Time:2020-5-15

    preface Only a bare head can make it stronger. The text has been included in my GitHub selected articles. Welcome to star:https://github.com/ZhongFuCheng3y/3y Review my introduction to Webflux. If you haven’t read it, you can read it again. The last article took a lot of effort~~ Webflux, which layman can understand, missed the blood loss At […]

  • GC thinking caused by a thread pool bug!

    Time:2020-5-15

    Author: empty https://segmentfault.com/a/1190000021109130 Problem description A few days ago, I was helping my colleagues to troubleshoot the occasional thread pool errors on the production line. The logic was very simple. The thread pool performed an asynchronous task with results. However, there have been occasional errors recently: java.util.concurrent.RejectedExecutionException: Task [email protected] rejected from [email protected]\[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0\] The simulation code in this article has been […]

  • GC garbage collection – Summary

    Time:2020-5-14

    GC garbage collection JVM’s garbage collection mechanism, in case of sufficient memory, it will not garbage collection unless you explicitly call system. Gc(); in case of insufficient memory, garbage collection will run automatically Method of judging whether the object should be recycled Reference counting algorithm Add a reference counter to the object. Whenever a place […]