<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>红颜丽人java多线程 &#187; 红颜丽人</title>
	<atom:link href="http://www.hongyanliren.com/tag/java%e5%a4%9a%e7%ba%bf%e7%a8%8b/feed" rel="self" type="application/rss+xml" />
	<link>http://www.hongyanliren.com</link>
	<description>追求技术就像追求#$！不抛弃，不放弃！</description>
	<lastBuildDate>Thu, 16 Mar 2023 07:48:39 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.2</generator>
		<item>
		<title>Java多线程知识点整理</title>
		<link>http://www.hongyanliren.com/2014m12/24966.html</link>
		<comments>http://www.hongyanliren.com/2014m12/24966.html#comments</comments>
		<pubDate>Wed, 17 Dec 2014 15:15:57 +0000</pubDate>
		<dc:creator>Quan</dc:creator>
				<category><![CDATA[Java程序开发]]></category>
		<category><![CDATA[java多线程]]></category>

		<guid isPermaLink="false">http://www.hongyanliren.com/?p=24966</guid>
		<description><![CDATA[Java多线程知识点整理。

基本概念
多线程程序在较低的层次上扩展了多任务的概念：一个程序同时执行多个任务，通常，每一个任务称为一个线程，它是线程控制的简称。可以同时运行一个以上线程的程序称为多线程程序。
多进程与多线程的区别：
每个进程拥有自己的一整套变量，而线程则共享数据。
相关接[......]<p class='read-more'><a href='http://www.hongyanliren.com/2014m12/24966.html'>Read more</a></p>]]></description>
		<wfw:commentRss>http://www.hongyanliren.com/2014m12/24966.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java线程范围内的共享数据二</title>
		<link>http://www.hongyanliren.com/2014m12/23843.html</link>
		<comments>http://www.hongyanliren.com/2014m12/23843.html#comments</comments>
		<pubDate>Fri, 12 Dec 2014 15:22:45 +0000</pubDate>
		<dc:creator>Quan</dc:creator>
				<category><![CDATA[Java程序开发]]></category>
		<category><![CDATA[java多线程]]></category>

		<guid isPermaLink="false">http://www.hongyanliren.com/?p=23843</guid>
		<description><![CDATA[Java线程范围内的共享数据二。

实际上那么Map也就是模拟的ThreadLocal

每一个线程调用全局的ThreadLocal对象的set方法，就相当于往其内部的map记录新的键值对，键是Thread.current,值是data

线程结束后，可以选择调用ThreadLocal的[......]<p class='read-more'><a href='http://www.hongyanliren.com/2014m12/23843.html'>Read more</a></p>]]></description>
		<wfw:commentRss>http://www.hongyanliren.com/2014m12/23843.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java多个线程之间处理共享数据的方式</title>
		<link>http://www.hongyanliren.com/2014m12/23836.html</link>
		<comments>http://www.hongyanliren.com/2014m12/23836.html#comments</comments>
		<pubDate>Fri, 12 Dec 2014 15:20:51 +0000</pubDate>
		<dc:creator>Quan</dc:creator>
				<category><![CDATA[Java程序开发]]></category>
		<category><![CDATA[java多线程]]></category>

		<guid isPermaLink="false">http://www.hongyanliren.com/?p=23836</guid>
		<description><![CDATA[<a href="http://blog.csdn.net/wjw0130/article/details/41857287">Java多个线程之间处理共享数据的方式<strong></strong></a>。

有4个线程，其中两个线程每次对x加1，另外两个每次对x减1，如何实现？

分析:
x就是这4个线程要处理的共享数据，不同种线程有不同的处理方式，但操作的数据是共同的，联想到“窗口买票问题”，但是卖票只是单纯的减。

所以，多个线程访问共享对象[......]<p class='read-more'><a href='http://www.hongyanliren.com/2014m12/23836.html'>Read more</a></p>]]></description>
		<wfw:commentRss>http://www.hongyanliren.com/2014m12/23836.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>java基本的线程控制</title>
		<link>http://www.hongyanliren.com/2014m12/21716.html</link>
		<comments>http://www.hongyanliren.com/2014m12/21716.html#comments</comments>
		<pubDate>Mon, 01 Dec 2014 05:13:26 +0000</pubDate>
		<dc:creator>Quan</dc:creator>
				<category><![CDATA[JAVASE学习]]></category>
		<category><![CDATA[java多线程]]></category>

		<guid isPermaLink="false">http://www.hongyanliren.com/?p=21716</guid>
		<description><![CDATA[java基本的线程控制.

基本的线程控制：
终止线程
测试线程状态
线程的暂停和恢复

终止线程
线程终止后其生命周期就结束了，即进入死亡态，终止后的线程不能再倍调度执行，以下几种情况，线程进入终止状态：
线程执行完run()方法后，会自然终止
通过调用线程的实例方法stop([......]<p class='read-more'><a href='http://www.hongyanliren.com/2014m12/21716.html'>Read more</a></p>]]></description>
		<wfw:commentRss>http://www.hongyanliren.com/2014m12/21716.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>java线程的调度</title>
		<link>http://www.hongyanliren.com/2014m12/21714.html</link>
		<comments>http://www.hongyanliren.com/2014m12/21714.html#comments</comments>
		<pubDate>Mon, 01 Dec 2014 05:12:34 +0000</pubDate>
		<dc:creator>Quan</dc:creator>
				<category><![CDATA[JAVASE学习]]></category>
		<category><![CDATA[java多线程]]></category>

		<guid isPermaLink="false">http://www.hongyanliren.com/?p=21714</guid>
		<description><![CDATA[java线程的调度.

线程的调度
线程调度器来监控程序中启动后进入就绪状态的所有线程
线程调度器按照线程的优先级决定调度哪些线程来执行
线程调度器按线程优先级高低选择高优先级线程(进入运行中状态)执行，同时线程调度是抢先式调度，即如果在当前线程执行过程中，一个更高优先级的线程进入可运行状[......]<p class='read-more'><a href='http://www.hongyanliren.com/2014m12/21714.html'>Read more</a></p>]]></description>
		<wfw:commentRss>http://www.hongyanliren.com/2014m12/21714.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JAVA多线程并发之java内存模型JMM</title>
		<link>http://www.hongyanliren.com/2014m12/21646.html</link>
		<comments>http://www.hongyanliren.com/2014m12/21646.html#comments</comments>
		<pubDate>Sun, 30 Nov 2014 18:06:45 +0000</pubDate>
		<dc:creator>Quan</dc:creator>
				<category><![CDATA[JAVASE学习]]></category>
		<category><![CDATA[java多线程]]></category>

		<guid isPermaLink="false">http://www.hongyanliren.com/?p=21646</guid>
		<description><![CDATA[JAVA多线程并发之java内存模型JMM.

多线程概念的引入是人类又一次有效压寨计算机的体现，而且这也是非常有必要的，因为一般运算过程中涉及到数据的读取，例如从磁盘、其他系统、数据库等，CPU的运算速度与数据读取速度有一个严重的不平衡，期间如果按一条线程执行将会在很多节点产生阻塞，使计算效率[......]<p class='read-more'><a href='http://www.hongyanliren.com/2014m12/21646.html'>Read more</a></p>]]></description>
		<wfw:commentRss>http://www.hongyanliren.com/2014m12/21646.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java多线程模型</title>
		<link>http://www.hongyanliren.com/2014m12/21619.html</link>
		<comments>http://www.hongyanliren.com/2014m12/21619.html#comments</comments>
		<pubDate>Sun, 30 Nov 2014 17:57:04 +0000</pubDate>
		<dc:creator>Quan</dc:creator>
				<category><![CDATA[JAVASE学习]]></category>
		<category><![CDATA[JavaSe]]></category>
		<category><![CDATA[java多线程]]></category>

		<guid isPermaLink="false">http://www.hongyanliren.com/?p=21619</guid>
		<description><![CDATA[Java多线程模型.

谈到Java多线程就涉及到多线程的模型及Java线程与底层操作系统之间的关系。正如我们熟知，现代机器可以分为硬件和软件两大块，如图2-5-1-1，硬件是基础，软件提供实现不同功能的手段。而且软件可以分为操作系统和应用程序，操作系统专注于对硬件的交互管理并提供一个运行环境给[......]<p class='read-more'><a href='http://www.hongyanliren.com/2014m12/21619.html'>Read more</a></p>]]></description>
		<wfw:commentRss>http://www.hongyanliren.com/2014m12/21619.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java并发框架——什么是AQS框架</title>
		<link>http://www.hongyanliren.com/2014m12/21614.html</link>
		<comments>http://www.hongyanliren.com/2014m12/21614.html#comments</comments>
		<pubDate>Sun, 30 Nov 2014 17:55:11 +0000</pubDate>
		<dc:creator>Quan</dc:creator>
				<category><![CDATA[JAVASE学习]]></category>
		<category><![CDATA[java多线程]]></category>

		<guid isPermaLink="false">http://www.hongyanliren.com/?p=21614</guid>
		<description><![CDATA[Java并发框架——什么是AQS框架？
<h4>什么是AQS框架</h4>
1995年sun公司发布了第一个java语言版本，可以说从jdk1.1到jdk1.4期间java的使用主要是在移动应用和中小型企业应用中，在此类领域中基本不用设计大型并发场景，当然也没有大型互联网公司使用java，因为担心它本身的性能。在[......]<p class='read-more'><a href='http://www.hongyanliren.com/2014m12/21614.html'>Read more</a></p>]]></description>
		<wfw:commentRss>http://www.hongyanliren.com/2014m12/21614.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>socket系列之什么是socket</title>
		<link>http://www.hongyanliren.com/2014m12/21611.html</link>
		<comments>http://www.hongyanliren.com/2014m12/21611.html#comments</comments>
		<pubDate>Sun, 30 Nov 2014 17:53:59 +0000</pubDate>
		<dc:creator>Quan</dc:creator>
				<category><![CDATA[JAVASE学习]]></category>
		<category><![CDATA[java多线程]]></category>

		<guid isPermaLink="false">http://www.hongyanliren.com/?p=21611</guid>
		<description><![CDATA[socket系列之什么是socket?
<h3>1、什么是socket</h3>
<h3>
Socket是应用层与TCP/IP协议族通信的中间抽象层，它是一组接口，应用层通过调用这些接口实现发送和接收数据。一般这种抽象层由操作系统提供或者由JVM自己实现。使用socket可以简单地实现应用程序在网络上得通信，一台机器上[......]</h3><p class='read-more'><a href='http://www.hongyanliren.com/2014m12/21611.html'>Read more</a></p>]]></description>
		<wfw:commentRss>http://www.hongyanliren.com/2014m12/21611.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java多线程的调度策略</title>
		<link>http://www.hongyanliren.com/2014m12/21608.html</link>
		<comments>http://www.hongyanliren.com/2014m12/21608.html#comments</comments>
		<pubDate>Sun, 30 Nov 2014 17:53:02 +0000</pubDate>
		<dc:creator>Quan</dc:creator>
				<category><![CDATA[Java程序开发]]></category>
		<category><![CDATA[java多线程]]></category>

		<guid isPermaLink="false">http://www.hongyanliren.com/?p=21608</guid>
		<description><![CDATA[Java多线程的调度策略。

在Java多线程环境中，为保证所有线程的执行能按照一定的规则执行，JVM实现了一个线程调度器，它定义了线程调度的策略，对于CPU运算的分配都进行了规定，按照这些特定的机制为多个线程分配CPU的使用权。这小节关注线程如何进行调度，了解了java线程调度模式有助于后面并[......]<p class='read-more'><a href='http://www.hongyanliren.com/2014m12/21608.html'>Read more</a></p>]]></description>
		<wfw:commentRss>http://www.hongyanliren.com/2014m12/21608.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
