<?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>并发 - 四号程序员</title>
	<atom:link href="https://www.coder4.com/archives/tag/%E5%B9%B6%E5%8F%91/feed" rel="self" type="application/rss+xml" />
	<link>https://www.coder4.com</link>
	<description>Keep It Simple and Stupid</description>
	<lastBuildDate>Wed, 01 Dec 2021 10:55:22 +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>基于ab的并发压力测试脚本</title>
		<link>https://www.coder4.com/archives/7462</link>
					<comments>https://www.coder4.com/archives/7462#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Wed, 01 Dec 2021 10:38:42 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[ab]]></category>
		<category><![CDATA[压力测试]]></category>
		<category><![CDATA[并发]]></category>
		<guid isPermaLink="false">https://www.coder4.com/?p=7462</guid>

					<description><![CDATA[脚本： #!/bin/bash rm -rf *.log for i in {1..5} do ab -n 1000000 -c 800 -k http://172.20.3.10/ &#62; $i.log &#38; done wait cat *log &#124; grep "per second" &#124; awk -F'[^0-9]+' '{s+=$2} END {print s}' 几个改进点： 使用keepalive 单个ab是有性能上限的[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/7462/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Python多进程并发(multiprocessing)</title>
		<link>https://www.coder4.com/archives/3352</link>
					<comments>https://www.coder4.com/archives/3352#comments</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Tue, 05 Jun 2012 06:46:50 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[multiprocessing]]></category>
		<category><![CDATA[多进程]]></category>
		<category><![CDATA[并发]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=3352</guid>

					<description><![CDATA[由于Python设计的限制(我说的是咱们常用的CPython)。最多只能用满1个CPU核心。 Python提供了非常好用的多进程包multiprocessing，你只需要定义一个函数，Python会替你完成其他所有事情。借助这个包，可以轻松完成从单进程到并发执行的转换。 1、新建单一进程 如果我们新建少量进程，可以如下： import multiprocessing import time def func(msg): for i in xrange(3):[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/3352/feed</wfw:commentRss>
			<slash:comments>13</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>
