<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>并发编程 on Roam Tech-verse | Roamverse Technical Blog</title>
    <link>/notes/java/concurrent/</link>
    <description>Recent content in 并发编程 on Roam Tech-verse | Roamverse Technical Blog</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <copyright>Copyright © 2020-2026 Razon Yang. All Rights Reserved.
</copyright><atom:link href="/notes/java/concurrent/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Java 线程的创建</title>
      <link>/notes/java/concurrent/create-thread/</link>
      <pubDate>Sun, 10 Dec 2023 07:53:03 +0000</pubDate>
      <guid>/notes/java/concurrent/create-thread/</guid>
      <description><![CDATA[<p>Java提供了三种创建线程的方法：</p>
<ul>
<li>重写<code>Thread</code>类的<code>run()</code>；</li>
<li>通过实现<code>Runnable</code>接口；</li>
<li>通过<code>Callable</code>和<code>FutureTask</code>创建线程。</li>
</ul>
<hr>

<h1 id="通过-thread-类创建" data-numberify>通过 Thread 类创建<a class="anchor ms-1" href="#通过-thread-类创建"></a></h1>
<p>在Java中，每一个线程实际的创建和运行都是通过<code>Thread</code>类。<code>Thread</code>类的<code>run()</code>方法就是当前线程的入口点（入口方法）。</p>]]></description>
    </item>
    
    <item>
      <title>Java 并发编程</title>
      <link>/notes/java/concurrent/introduction/</link>
      <pubDate>Thu, 07 Dec 2023 08:08:35 +0000</pubDate>
      <guid>/notes/java/concurrent/introduction/</guid>
      <description><![CDATA[<h1 id="概念" data-numberify>概念<a class="anchor ms-1" href="#概念"></a></h1>
<p>Java 并发编程中涵盖了以下这些概念：</p>
<ul>
<li>进程</li>
<li>线程</li>
<li>并发</li>
<li>并行</li>
</ul>
<hr>

<h1 id="进程" data-numberify>进程<a class="anchor ms-1" href="#进程"></a></h1>
<p><strong>进程</strong>（Process）是指在计算机中正在运行的一个<strong>程序的实例</strong>。进程是操作系统进行资源分配和调度的<strong>基本单位</strong>（<strong>资源分配的最小单位</strong>），用于执行程序的代码和管理与该程序相关的资源。每个进程都有自己的地址空间、内存、文件句柄等资源。</p>]]></description>
    </item>
    
  </channel>
</rss>

