Multiprocessing and Multithreading

Grant Edwards invalid at invalid.invalid
Tue Oct 8 10:05:58 EDT 2013


On 2013-10-08, Mark Lawrence <breamoreboy at 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            



More information about the Python-list mailing list