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 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: References: 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 On 2013-10-08, Mark Lawrence 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