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


Groups > comp.lang.python > #56399

Re: Multiprocessing and Multithreading

From Grant Edwards <invalid@invalid.invalid>
Newsgroups comp.lang.python
Subject Re: Multiprocessing and Multithreading
Date 2013-10-08 14:05 +0000
Organization PANIX Public Access Internet and UNIX, NYC
Message-ID <l313g6$gve$1@reader1.panix.com> (permalink)
References <F9D8DC52CB96E24D8C7AA5F8E9781E881E3C3BAE@BLRKECMBX23.ad.infosys.com> <mailman.836.1381216926.18130.python-list@python.org>

Show all headers | 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