Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #56399

Re: Multiprocessing and Multithreading

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!nntp.club.cc.cmu.edu!micro-heart-of-gold.mit.edu!bloom-beacon.mit.edu!panix!not-for-mail
From Grant Edwards <invalid@invalid.invalid>
Newsgroups comp.lang.python
Subject Re: Multiprocessing and Multithreading
Date Tue, 8 Oct 2013 14:05:58 +0000 (UTC)
Organization PANIX Public Access Internet and UNIX, NYC
Lines 28
Message-ID <l313g6$gve$1@reader1.panix.com> (permalink)
References <F9D8DC52CB96E24D8C7AA5F8E9781E881E3C3BAE@BLRKECMBX23.ad.infosys.com> <mailman.836.1381216926.18130.python-list@python.org>
NNTP-Posting-Host dsl.comtrol.com
X-Trace reader1.panix.com 1381241158 17390 64.122.56.22 (8 Oct 2013 14:05:58 GMT)
X-Complaints-To abuse@panix.com
NNTP-Posting-Date Tue, 8 Oct 2013 14:05:58 +0000 (UTC)
User-Agent slrn/1.0.1 (Linux)
Xref csiph.com comp.lang.python:56399

Show key headers only | View raw


On 2013-10-08, Mark Lawrence <breamoreboy@yahoo.co.uk> wrote:
> On 08/10/2013 06:34, Chandru Rajendran wrote:
>> Hi all,
>>
>> Please give me an idea about Multiprocessing and Multithreading.
>>
>> Thanks & Regards,
>>
>> Chandru
>>
>
> I'll assume that you're a newbie so I'll keep it simple. 
> Multiprocessing is about more than one process and multithreading is 
> about more than one thread.

I doubt a newbie knows the difference between a thread and a process.

Threads share all memory and global variabls.  They can communicate
with each other through global variables.

Processes are completely isolated from each other and much communicate
with each other through mechanisms provided by the OS (e.g. sockets,
mailboxes, pipes, files).

-- 
Grant Edwards               grant.b.edwards        Yow! Are the STEWED PRUNES
                                  at               still in the HAIR DRYER?
                              gmail.com            

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: Multiprocessing and Multithreading Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-10-08 08:21 +0100
  Re: Multiprocessing and Multithreading Grant Edwards <invalid@invalid.invalid> - 2013-10-08 14:05 +0000

csiph-web