perl multithreading

perl multithreading

am 03.01.2010 11:47:19 von mud_saisem

Hi There,

I am trying to learn and understand multithreading but I am not sure
why one would choose to use multithreading ?

Could somebody please explain and perhaps provide a example.


--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/

Re: perl multithreading

am 04.01.2010 20:29:23 von Uri Guttman

>>>>> "ms" == mud saisem writes:

ms> I am trying to learn and understand multithreading but I am not sure
ms> why one would choose to use multithreading ?

ms> Could somebody please explain and perhaps provide a example.

first off, IMO this isn't a good topic for the perl beginners list as
threading isn't a simple thing.

but here is a quick response to what you asked. threading is a form of
what is called multitasking. this is needed when you need to do multiple
things at the same time but some of them will be waiting on a resource
(fetching a web page, accessing a database, etc). multitasking means you
can usually have some work being done in your program or system at all
times vs waiting around for one task to finish before starting
another. there are several other ways to multitask including event loops
and multiple processes. again, these are topics which are more than
beginner level and should be asked at other places such as perlmonks,
usenet or other mailing lists.

uri

--
Uri Guttman ------ uri@stemsystems.com -------- http://www.sysarch.com --
----- Perl Code Review , Architecture, Development, Training, Support ------
--------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com ---------

--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/

Re: perl multithreading

am 05.01.2010 20:27:25 von mud_saisem

On Jan 5, 6:29=A0am, u...@StemSystems.com ("Uri Guttman") wrote:
> >>>>> "ms" == mud saisem writes:
>
> =A0 ms> I am trying to learn and understand multithreading but I am not s=
ure
> =A0 ms> why one would choose to use multithreading ?
>
> =A0 ms> Could somebody please explain and perhaps provide a example.
>
> first off, IMO this isn't a good topic for the perl beginners list as
> threading isn't a simple thing.
>
> but here is a quick response to what you asked. threading is a form of
> what is called multitasking. this is needed when you need to do multiple
> things at the same time but some of them will be waiting on a resource
> (fetching a web page, accessing a database, etc). multitasking means you
> can usually have some work being done in your program or system at all
> times vs waiting around for one task to finish before starting
> another. there are several other ways to multitask including event loops
> and multiple processes. again, these are topics which are more than
> beginner level and should be asked at other places such as perlmonks,
> usenet or other mailing lists.
>
> uri
>
> --
> Uri Guttman =A0------ =A0u...@stemsystems.com =A0-------- =A0http://www.s=
ysarch.com--
> ----- =A0Perl Code Review , Architecture, Development, Training, Support =
------
> --------- =A0Gourmet Hot Cocoa Mix =A0---- =A0http://bestfriendscocoa.com=
---------

That is a perfect response thanks.

I will take any other questions to the suggested places.


--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/