<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>
<div>
<div>You do need to be careful with imports and other global side-effects. The last time I did some threaded work in IP, the dictionary structure that contained the imported modules for the engine was not thread-safe. And I don’t recall seeing anything committed
that would have changed that. If you pre-import the modules prior to forking then it’s fine - using a cached module is OK, it’s just adding newly loaded modules to the cache that causes trouble. And I’m sure there are other similar situations.</div>
<div><br>
</div>
<div>Actual execution of scripts that are side-effect-free is perfectly fine.</div>
<div><br>
</div>
<div>
<p class="MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; ">
<br>
</p>
<p class="MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; ">
</p>
<p class="MsoNormal" style="margin: 0in 0in 0.0001pt;"><b><span style="font-size: 14pt; color: rgb(31, 73, 125); ">Keith Rome</span></b><o:p></o:p></p>
<p class="MsoNormal" style="margin: 0in 0in 0.0001pt;"><b><span style="font-size: 10pt; color: rgb(31, 73, 125); ">Principal Architect @ Wintellect (<a href="http://www.wintellect.com" style="color: purple; ">www.wintellect.com</a>)</span></b></p>
<p class="MsoNormal" style="margin: 0in 0in 0.0001pt;"><span style="color: rgb(31, 73, 125); font-size: 10pt; ">770.617.4016 | </span><a href="mailto:rome@wintellect.com" style="color: purple; font-size: 10pt; ">krome@wintellect.com</a></p>
<p class="MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; "><font face="Calibri" style="font-size: 13px; "><br>
</font></p>
<p class="MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; "><font face="Calibri" style="font-size: 13px; "><img src="cid:5B509F53-9AEB-4247-A9A4-CA642CCFBCBB" type="image/png"> </font></p>
<p class="MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 12pt; "><font face="Calibri" color="#1c4072" style="font-size: 13px; "><a href="https://www.wintellectnow.com/Account/Promo/ROME-13" style="color: purple; ">Register today</a> for access to our
high-quality on-demand training resources!</font></p>
<p></p>
</div>
</div>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Jeff Hardy <<a href="mailto:jdhardy@gmail.com">jdhardy@gmail.com</a>><br>
<span style="font-weight:bold">Date: </span>Friday, January 17, 2014 at 7:36 AM<br>
<span style="font-weight:bold">To: </span>Bernd Viehmann <<a href="mailto:bernd.viehmann@googlemail.com">bernd.viehmann@googlemail.com</a>><br>
<span style="font-weight:bold">Cc: </span>"<a href="mailto:ironpython-users@python.org">ironpython-users@python.org</a>" <<a href="mailto:ironpython-users@python.org">ironpython-users@python.org</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [Ironpython-users] multi-core programming with iron-python<br>
</div>
<div><br>
</div>
<div>
<div>
<div>On Fri, Jan 17, 2014 at 9:35 AM, Bernd Viehmann</div>
<div><<a href="mailto:bernd.viehmann@googlemail.com">bernd.viehmann@googlemail.com</a>> wrote:</div>
<blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>Hi folks,</div>
<div><br>
</div>
<div>in the python wiki i have read the following statement:</div>
<div><br>
</div>
<div>" IronPython has no GIL and multi-threaded code can use multi core</div>
<div>processors"</div>
<div><a href="https://wiki.python.org/moin/IronPython">https://wiki.python.org/moin/IronPython</a></div>
<div><br>
</div>
<div>Is there anything special to take care off? Or do i just to impotz and use</div>
<div>the thread-module of python. I want to write a script which will read data</div>
<div>from a ado.net data-table in memory. it should be able to use all cores</div>
<div>available on the host.</div>
</blockquote>
<div><br>
</div>
<div>The only special care you have to take is what you normally would when</div>
<div>writing multithreaded code.</div>
<div><br>
</div>
<div>If you do hit any issues they might be bugs, so please report what you find.</div>
<div><br>
</div>
<div>- Jeff</div>
<div><br>
</div>
<div><br>
</div>
<blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div><br>
</div>
<div>thanks much and regards</div>
<div><br>
</div>
<div>bernd</div>
<div><br>
</div>
<div>--</div>
<div><br>
</div>
<div>Mit freundlichen Grüßen</div>
<div><br>
</div>
<div>Bernd Viehmann</div>
<div>Mahrweg 46</div>
<div>41836 Hückelhoven</div>
<div><br>
</div>
<div>Tel.: 02433 9640 100</div>
<div>Fax: 02433 9640 109</div>
<div><br>
</div>
<div>_______________________________________________</div>
<div>Ironpython-users mailing list</div>
<div><a href="mailto:Ironpython-users@python.org">Ironpython-users@python.org</a></div>
<div><a href="https://mail.python.org/mailman/listinfo/ironpython-users">https://mail.python.org/mailman/listinfo/ironpython-users</a></div>
<div><br>
</div>
</blockquote>
<div>_______________________________________________</div>
<div>Ironpython-users mailing list</div>
<div><a href="mailto:Ironpython-users@python.org">Ironpython-users@python.org</a></div>
<div><a href="https://mail.python.org/mailman/listinfo/ironpython-users">https://mail.python.org/mailman/listinfo/ironpython-users</a></div>
<div><br>
</div>
</div>
</div>
</span>
</body>
</html>