当前位置:网站首页>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博客实战 - 创建后台管理应用
- Summary of sub database and sub table 1
- 20 状态模式
- 08 桥接模式
- SQL triggers
- Some problems encountered in using swagger in golang
- The role of subject integration in steam Education
- Basic knowledge of DDL operation database and operation table and explanation of use format
- I spring and autumn web Penetration Test Engineer (elementary) learning notes (Chapter 3)
- 一文彻底搞懂My SQL索引知识点
猜你喜欢

Synchronized

HashTable源码解析、Collections.synchronizedMap解析

Flask博客实战 - 实现文章管理

Web Knowledge 1 (server +servlet)

08 bridging mode

I spring and autumn web Penetration Test Engineer (elementary) learning notes (Chapter 3)

PostgreSQL source code (56) extensible type analysis expandedobject/expandedrecord

Matplotlib | temperature change visualization

培养以科学技能为本的Steam教育

10 装饰模式
随机推荐
09 组合模式
17 iterator mode
Basic knowledge of DDL operation database and operation table and explanation of use format
开展有效的创客教育课程与活动
Detailed explanation of the underlying principle of concurrent thread pool and source code analysis
One hot and embedding
10.File/IO流-bite
Bee framework, an ORM framework that can be learned in ten minutes --bee
中断中为何不能使用信号量,中断上下文为何不能睡眠
Mysql5.7 master-slave mode reference
Fusing and current limiting
20 状态模式
Enumerations, custom types, and swaggerignore in swagger
377.组合总和 Ⅳ
面试突击59:一个表中可以有多个自增列吗?
新型冠状病毒疫情
What actions might cause thread context switching?
HashTable源码解析、Collections.synchronizedMap解析
邮件巨头曝严重漏洞,用户数据被窃取
Prompt installremove of the Service denied when installing MySQL service