>>>>> "ms" == mud saisem <mud_sai...@hotmail.com> 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  ------  u...@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-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to