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


Groups > comp.lang.python > #56361 > unrolled thread

Re: Multiprocessing and Multithreading

Started byMark Lawrence <breamoreboy@yahoo.co.uk>
First post2013-10-08 08:21 +0100
Last post2013-10-08 14:05 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  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

#56361 — Re: Multiprocessing and Multithreading

FromMark Lawrence <breamoreboy@yahoo.co.uk>
Date2013-10-08 08:21 +0100
SubjectRe: Multiprocessing and Multithreading
Message-ID<mailman.836.1381216926.18130.python-list@python.org>
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.  If you want Python specifics you could 
start here http://docs.python.org/3/library/multiprocessing.html or here 
http://docs.python.org/3/library/threading.html, both of which may have 
been found by using your favourite search engine.

-- 
Roses are red,
Violets are blue,
Most poems rhyme,
But this one doesn't.

Mark Lawrence

[toc] | [next] | [standalone]


#56399

FromGrant Edwards <invalid@invalid.invalid>
Date2013-10-08 14:05 +0000
Message-ID<l313g6$gve$1@reader1.panix.com>
In reply to#56361
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            

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web