PageSourceSearch

https://java.didispace.com/assets/1-3-thread-class.html-f3b74e70.js

js didispace.com collected 2026-10-02 18:24:20 UTC 5,014 bytes, 1 lines download raw bytes

1const e=JSON.parse('{"key":"v-74d1dfb0","path":"/java-multithreading/1-3-thread-class.html","title":"Java多线程教程:Thread类","lang":"zh-CN","frontmatter":{"index":true,"date":"2025-03-11T13:00:00.000Z","icon":null,"tag":["Java"],"category":["Java"],"isOriginal":true,"article":true,"sticky":false,"description":"Java多线程教程:Thread类 Java中的Thread类是创建和管理线程的主要机制。每个线程代表程序中的一个独立执行路径,允许并发操作并提高应用程序的性能和响应能力。 目录 Thread类概述 创建线程 继承Thread类 实现Runnable接口 线程生命周期 线程方法 示例:继承Thread类 示例:实现Runnable接口 线程优先级 线程同步 线程间通信 线程状态 守护线程 结论","head":[["meta",{"property":"og:url","content":"https://java.didispace.com/java-multithreading/1-3-thread-class.html"}],["meta",{"property":"og:site_name","content":"程序猿DD - Java专区"}],["meta",{"property":"og:title","content":"Java多线程教程:Thread类"}],["meta",{"property":"og:description","content":"Java多线程教程:Thread类 Java中的Thread类是创建和管理线程的主要机制。每个线程代表程
1序中的一个独立执行路径,允许并发操作并提高应用程序的性能和响应能力。 目录 Thread类概述 创建线程 继承Thread类 实现Runnable接口 线程生命周期 线程方法 示例:继承Thread类 示例:实现Runnable接口 线程优先级 线程同步 线程间通信 线程状态 守护线程 结论"}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-CN"}],["meta",{"property":"og:updated_time","content":"2025-03-11T06:49:50.000Z"}],["meta",{"property":"article:author","content":"程序猿DD"}],["meta",{"property":"article:tag","content":"Java"}],["meta",{"property":"article:published_time","content":"2025-03-11T13:00:00.000Z"}],["meta",{"property":"article:modified_time","content":"2025-03-11T06:49:50.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"Java多线程教程:Thread类\\",\\"image\\":[\\"\\"],\\"datePublished\\":\\"2025-03-11T13:00:00.000Z\\",\\"dateModified\\":\\"2025-03-11T06:49:50.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"程序猿DD\\",\\"url\\":\\"https://didispace.com/\\"}]}"]]},"headers":[{"level":2,"title":"目录","slug":"目录","link":"#目录","children":[]},{"level":2,"title":"1. Thread类概述","slug":"_1-thread类概述","link":"#_1-thread类概述","children":[]},{"level":2,"title":"2. 创建线程","slug":"_2-创建线程","link":"#_2-创建线程","children":[{"level":3,"title":"继承Thread类","slug":"继承thread类","link":"#继承thread类","children":[]},{"level":3,"title":"实现Runnable接口","slug":"实现runnable接口","link":"#实现runnable接口","children":[]}]},{"level":2,"title":"3. 线程生命周期","slug":"_3-线程生命周期","link":"#_3-线程生命周期","children":[]},{"level":2,"title":"4. 线程方法","slug":"_4-线程方法","link":"#_4-线程方法","children":[]},{"level":2,"title":"5. 示例:继承Thread类","slug":"_5-示例-继承thread类","link":"#_5-示例-继承thread类","children":[]},{"level":2,"title":"6. 示例:实现Runnable接口","slug":"_6-示例-实现runnable接口","link":"#_6-示例-实现runnable接口","children":[]},{"level":2,"title":"7. 线程优先级","slug":"_7-线程优先级","link":"#_7-线程优先级","children":[]},{"level":2,"title":"8. 线程同步","slug":"_8-线程同步","link":"#_8-线程同步","children":[]},{"level":2,"title":"9. 线程间通信","slug":"_9-线程间通信","link":"#_9-线程间通信","children":[]},{"level":2,"title":"10. 守护线程","slug":"_10-守护线程","link":"#_10-守护线程","children":[]}
1,{"level":2,"title":"12. 结论","slug":"_12-结论","link":"#_12-结论","children":[]}],"git":{"createdTime":1741675790000,"updatedTime":1741675790000,"contributors":[{"name":"程序猿DD","email":"[email protected]","commits":1}]},"readingTime":{"minutes":4.37,"words":1311},"filePathRelative":"java-multithreading/1-3-thread-class.md","localizedDate":"2025å¹´3月11日","excerpt":"<h1> Java多线程教程:Threadç±»</h1>\\n<p>Java中的<code>Thread</code>类是创建和管理线程的主要机制。每个线程代表程序中的一个独立执行路径,允许并发操作并提高应用程序的性能和响应能力。</p>\\n<h2> 目录</h2>\\n<ol>\\n<li>Thread类概述</li>\\n<li>创建线程\\n<ul>\\n<li>继承<code>Thread</code>ç±»</li>\\n<li>实现<code>Runnable</code>接口</li>\\n</ul>\\n</li>\\n<li>线程生命周期</li>\\n<li>线程方法</li>\\n<li>示例:继承Threadç±»</li>\\n<li>示例:实现Runnable接口</li>\\n<li>线程优先级</li>\\n<li>线程同步</li>\\n<li>线程间通信</li>\\n<li>线程状态</li>\\n<li>守护线程</li>\\n<li>结论</li>\\n</ol>","autoDesc":true}');export{e as data};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.