Tag:Thread

  • Operating system concurrency condition variables and semaphores

    Time:2021-4-23

    Conditional variable We talked about locks before, but locks are not the only primitives needed in concurrent programming. In many cases, a thread needs to check that a condition is met before it can continue to run. For example, the parent thread needs to check whether the child thread has finished executing. How can this […]

  • Performance Optimization: thread resource recycling

    Time:2021-4-23

    This article is from:Perfma technology community Perfma official website 1、 Questions There are many timeouts in the sorting request of the model service platform, and the null pointer exception is accompanied from time to time. 2、 Changes before and after the problem The recall engine expands the recall amount, resulting in an increase in the […]

  • JVM – 02. Program counter

    Time:2021-4-23

    A series of articles: JVM – 01. What is a JVM JVM – 02. Program counter definition Program counter register effect Remember the execution address of the next JVM instruction characteristic Thread private There will be no memory overflow JVM This work adoptsCC agreementReprint must indicate the author and the link of this article

  • How does flutter run on IOS

    Time:2021-4-23

    abstract This paper mainly focuses on how flutter runs on IOS, and summarizes the running process. The key classes involved are as follows: FlutterViewController FlutterView FlutterEngine DartIsolate FlutterViewController The embedded native application of flutter must have a carrier. Starting from this point, the entry point of the API in the source code of flutter engine […]

  • Node process and thread

    Time:2021-4-23

    1、 Process Process refers toProgram in progress, i.eRunning program. The process isThe smallest unit of operating system for resource allocation and schedulingSo every processHas its own independent virtual address spaceIn general, includingText area(text region)、Data area(data region) andStack area(stack region)。 Text areaCode executed by the storage processor; Data areaStore global variables and constants; stack area whereStack […]

  • [issue 52] detailed illustration of web workers & JavaScript variable objects you don’t know & react native source code analysis

    Time:2021-4-23

    Replace webpack? Can you learn the principle of snoopack Recently, with the various exposures of vue3, the popularity of vite has increased, and the attention of snoopack similar to vite has gradually increased. At present (June 18, 2020), snoopack has nearly 1W stars on GitHub. The code of snoopack is very light, this paper will […]

  • Okhttp source code from the perspective of design patterns

    Time:2021-4-22

    preface When it comes to source code, many friends find it complicated and difficult to understand. But what if it’s a high-quality source code library with clear structure and complete decoupling? OkHttpThis is such an existence. For this native network framework, you must have seen a lot of source code analysis. Its source code is […]

  • Interview summary of the latest Alibaba Tencent headlines, meituan and other IOS

    Time:2021-4-22

    preface ========= Recently, spring recruitment has been in a tense interview, and now it has won the headline offer, so it’s not so nervous. I decided to share the interview questions with you. Welcome to discuss. Now let’s share the following questions. Meituan side I can’t remember 23333 Mainly ask some technical points of the […]

  • Tidb source code reading (1) tidb entrance

    Time:2021-4-22

    I wrote this just because I wanted to master the source code of tidb. My colleagues gave me some reading ideas, which was very good. In some places, if you have problems with your understanding, please criticize and educate. Your understanding of go language is limited. If you mislead the readers, please forgive me Tidb […]

  • Common concurrency problems and event concurrency model

    Time:2021-4-21

    Common concurrency problems Over the years, researchers have spent a lot of time and energy studying the defects of concurrent programming. There are many common patterns of concurrent defects, which can be divided into two categories: non deadlock defects and deadlock defects. Understanding these patterns is the first step in writing robust, correct programs. Non […]

  • Redis 6.0 multithreading performance test results and analysis

    Time:2021-4-21

      Single threaded redis has always been known for its simplicity and efficiency, but it also has Achilles heel: blocking! Before the completion of the most bottleneck network read-write (redis big key, including some other heavyweight operations such as sort / Sunion / zunionstore / sdiff, centralized expired key cleaning, memory overflow maxmemory policy, etc.), […]

  • Singleton pattern of Java design pattern_ Sluggard style

    Time:2021-4-21

    Singleton mode   First knowledge: Singleton pattern is one of the simplest design patterns in Java. This type of design pattern is a creative pattern, which provides the best way to create objects. This pattern involves a single class that is responsible for creating its own objects while ensuring that only a single object is […]