<html><head><base href="x-msg://191/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Mar 25, 2012, at 9:24 PM, Peng Xiao -X (penxiao - Digital China at Cisco) wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Menlo; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div lang="ZH-CN" link="blue" vlink="purple"><div class="WordSection1" style="page: WordSection1; "><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif; "><span lang="EN-US">Hi experts<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif; "><span lang="EN-US"><o:p>&nbsp;</o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif; "><span lang="EN-US">I want to use multi-core of CPU in twisted for parallel programming.<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif; "><span lang="EN-US">Could anyone tell me how to archive that?<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif; "><span lang="EN-US">Very thanks.<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; text-align: justify; font-size: 10.5pt; font-family: Calibri, sans-serif; "><span lang="EN-US"><o:p>&nbsp;</o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; text-align: left; font-size: 10.5pt; font-family: Calibri, sans-serif; "><span lang="EN-US" style="font-size: 10pt; color: rgb(31, 73, 125); ">Best</span><span lang="EN-US" style="font-size: 10pt; font-family: 宋体; color: black; "><o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; text-align: left; font-size: 10.5pt; font-family: Calibri, sans-serif; "><span lang="EN-US" style="font-size: 10pt; color: rgb(31, 73, 125); ">Regards,</span><span lang="EN-US" style="font-size: 10pt; font-family: 宋体; color: black; "><o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; text-align: left; font-size: 10.5pt; font-family: Calibri, sans-serif; "><span lang="EN-US" style="font-size: 10pt; color: rgb(31, 73, 125); ">&nbsp;</span><span lang="EN-US" style="font-size: 10pt; font-family: 宋体; color: black; "><o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; text-align: left; font-size: 10.5pt; font-family: Calibri, sans-serif; "><span lang="EN-US" style="font-size: 10pt; color: rgb(31, 73, 125); ">Xiao Peng</span><span lang="EN-US" style="font-size: 10pt; font-family: 宋体; color: black; "><o:p></o:p></span></div></div></div></span></blockquote><br></div><div>There are many different ways, depending on your application.</div><div><br></div><div>Generally, some use of spawnProcess is the current best practice.</div><div><br></div><div>You might also want to look at a process pool, like &lt;<a href="https://launchpad.net/ampoule">https://launchpad.net/ampoule</a>&gt; to make things a little easier.</div><div><br></div><div>Good luck! &nbsp;This is an area where there are several features in development to make it easier, but it shouldn't be <i>too </i>hard even today. (In the future, we hope that it will eventually be almost automatic.)</div><div><br></div><div>-glyph</div><br></body></html>