当前位置:网站首页>Thread. Source code analysis of start() method
Thread. Source code analysis of start() method
2022-06-22 08:37:00 【Keyboard singer】
For threads Thread Class has a core method called start(), Its bottom layer calls start0() This native Method .
Want to continue to learn more start0 What did you do , We need to download one OpenJDK
openjdk Write in JNI Usually one-to-one correspondence ,Thread.java The corresponding is Thread.c( be located openjdk8\jdk\src\share\native\java\lang Under the table of contents ), At this point, you can see the source code in jvm.h Declaration found in

Continue to read jvm.cpp file (openjdk8\hotspot\src\share\vm\prims) Medium JVM_StartThread Method 

By reading the above method , We see the key calls Thread::start(native_thread), So we need to keep chasing , see thread.cpp file ( be located openjdk\hotspot\src\share\vm\runtime Under the table of contents ), After analysis, the source code includes comments , We found that the operating system allocates threads at the bottom .
边栏推荐
- Flask博客实战 - 实现博客的分类管理
- C # read / write TXT file to listview
- Implementation and landing of any to any real-time voice change RTC dev Meetup
- A simple - timed task component (quartz) -demo
- Questions 1 to 100 of the national information security grade examination nisp level 1 question bank (1)
- Mainstream design of database middleware
- Alibaba cloud ~ simply send SMS
- Mysq index optimization and how to avoid deadlock
- Thoroughly understand my SQL index knowledge points
- Basic knowledge of DDL operation database and operation table and explanation of use format
猜你喜欢
随机推荐
同态加密的基本概念
Type of sub database and sub table
Thoroughly understand my SQL index knowledge points
14 responsibility chain mode
HashTable源码解析、Collections.synchronizedMap解析
Bee read write separation Usage Summary
Introduction to MySQL database Basics
Powerful database design tool PowerDesigner
SQL triggers
Web knowledge 4 (filter+listener)
Thread status (timed wait, lock blocking, infinite wait (key))
13 代理模式
[conda]conda switch to source of China University of science and technology
Distributed transaction
JVM memory overflow
Installation and use of Jupiter notebook
Flask博客实战 - 集成富文本编辑器Quill
The challenge of image based voice processing in real-time audio and video -- RTC dev Meetup
I spring and autumn web Penetration Test Engineer (elementary) learning notes (Chapter 3)
How to write high performance SQL statements?









