<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:media="http://search.yahoo.com/mrss/"
	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>Gevent - 四号程序员</title>
	<atom:link href="https://www.coder4.com/archives/tag/gevent/feed" rel="self" type="application/rss+xml" />
	<link>https://www.coder4.com</link>
	<description>Keep It Simple and Stupid</description>
	<lastBuildDate>Sat, 28 Feb 2015 02:39:25 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>
	<item>
		<title>gevent中与&quot;线程&quot;相关的几个例子</title>
		<link>https://www.coder4.com/archives/4449</link>
					<comments>https://www.coder4.com/archives/4449#comments</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Fri, 27 Feb 2015 10:54:40 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Gevent]]></category>
		<category><![CDATA[greenlet]]></category>
		<category><![CDATA[线程池]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=4449</guid>

					<description><![CDATA[标题虽然说是线程，其实gevent用的是“greenlet”，可能翻译成"微线程"更合适一些。 1、线程池 import time import gevent from gevent.threadpool import ThreadPool def my_func(text, num): print text, num pool = ThreadPool(100) start = time.time() for i in xrange(100000):[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/4449/feed</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>关于gevent的Timeout(超时)问题……</title>
		<link>https://www.coder4.com/archives/2192</link>
					<comments>https://www.coder4.com/archives/2192#comments</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Wed, 21 Sep 2011 16:20:24 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Gevent]]></category>
		<category><![CDATA[gevent.Timeout]]></category>
		<category><![CDATA[socekt]]></category>
		<category><![CDATA[超时]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=2192</guid>

					<description><![CDATA[真的是内牛满面啊，虽然4个月前就开始用gevent，但是直到今天才知道到底怎么才能设置gevent(含monkey打patch后)的超时！！ 官方文档太坑爹了，在很隐藏的一个角落里才发现这么一个类gevent.Timeout。 事情是这样的：我们常用的socket都是阻塞的，那么超时是很好设置的。但是，用过Linux下非阻塞I/O的都知道，非阻塞情况下，设置连接超时神马都是浮云的，因为人家是非阻塞的…… 于是，当我们用monkey.patch_all()之后，所有的socket[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/2192/feed</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
			</item>
		<item>
		<title>关于gevent的微线程“eventlet”同步问题</title>
		<link>https://www.coder4.com/archives/2186</link>
					<comments>https://www.coder4.com/archives/2186#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Tue, 20 Sep 2011 15:44:24 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Gevent]]></category>
		<category><![CDATA[同步]]></category>
		<category><![CDATA[线程安全]]></category>
		<category><![CDATA[锁]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=2186</guid>

					<description><![CDATA[理论上讲，Python是不存在线程安全问题的，由于GIT么，但是这是有前提的：sleep，I/O导致的wait都可能会引发线程安全隐患。 同理，gevent是基于事件驱动模型的，就不太可能是线程安全的。 gevent.coros.Semaphore提供了信号量的功能，可以是n个哦！ semaphore.acquire() -&#62; 获取“锁” semaphore.release() -&#62; 释放“锁” gevent的文档写的真简介啊，于是测试了个基本的同步方法：同[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/2186/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>初试Gevent – 高性能的Python并发框架</title>
		<link>https://www.coder4.com/archives/1522</link>
					<comments>https://www.coder4.com/archives/1522#comments</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Thu, 05 May 2011 14:53:28 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[大数据技术]]></category>
		<category><![CDATA[Gevent]]></category>
		<category><![CDATA[greenlet]]></category>
		<category><![CDATA[xml-rpc]]></category>
		<category><![CDATA[例子]]></category>
		<category><![CDATA[并发]]></category>
		<category><![CDATA[微线程]]></category>
		<category><![CDATA[性能测试]]></category>
		<category><![CDATA[框架]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=1522</guid>

					<description><![CDATA[Gevent是一个基于greenlet的Python的并发框架，以微线程greenlet为核心，使用了epoll事件监听机制以及诸多其他优化而变得高效。 于greenlet、eventlet相比，性能略低，但是它封装的API非常完善，最赞的是提供了一个monkey类，可以将现有基于Python线程直接转化为greenlet，相当于proxy了一下（打了patch）。 今天有空就迫不及待的试一下效果。 1、安装 Gevent依赖libevent和greenlet，需要分别安[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/1522/feed</wfw:commentRss>
			<slash:comments>6</slash:comments>
		
		
			</item>
	</channel>
</rss>
