<br><br><div class="gmail_quote">On Wed, Nov 16, 2011 at 6:30 PM, Dave Angel <span dir="ltr"><<a href="mailto:d@davea.name">d@davea.name</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="HOEnZb"><div class="h5">On 11/16/2011 01:22 PM, Dave Angel wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
(You're top-posting.  Put your remarks AFTER what you're quoting)<br>
<br>
On 11/16/2011 12:52 PM, Jack Keegan wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Ok, I thought that processes would do the same job as threads. So would the<br>
general rule be some thing like so:<br>
<br>
If I want another piece of work to run (theoretically) along side my main<br>
script, and I want to share data between them, I should use a thread and<br>
share data with the thread-safe queue.<br>
If the work I want done can function and complete on its own, go for a<br>
process.<br>
<br>
Would that be about right?<br>
<br>
</blockquote>
<br>
Yes, with all the caveats I mentioned before.  With some language implementations, and with some operating systems, and on some CPU-systems, the guidelines could be different.  They all trade off in ways too complex to describe here.<br>

<br>
For example, if a thread is mostly doing I/O, it may be just as efficient as a separate process, even if sharing data isn't an issue.<br>
<br>
And in some languages, sharing data between processes isn't all that tough, either.<br>
<br>
<br>
</blockquote></div></div>
Well, you sent me a mail without including the list (just use Reply-All), and I tried to add the list in.  Unfortunately, I picked the wrong one, so i sent this to Tutor by mistake.  I'll try to fix that now, sorry.</blockquote>
<div><br></div><div>Apologies, I usually reply-all and don't usually top-post. Was just rushing out the door when I responded last time.</div><div><br></div><div>Cheers,</div><div><br></div><div>Jack</div></div><div><br>
</div>-- <br>The earth is a very small stage in a vast cosmic arena. Think of the rivers of blood spilled by all those generals and emperors so that in glory and in triumph they could become the momentary masters of a fraction of a dot.<br>
- Carl Sagan [Pale Blue Dot]<br>