1753511 Members
5172 Online
108795 Solutions
New Discussion юеВ

Re: Thread enabled perl

 
Misak
New Member

Thread enabled perl

Hi All,

Can anyone please tell me advantages and disadvantages of thread-enabled Perl.

6 REPLIES 6
James R. Ferguson
Acclaimed Contributor

Re: Thread enabled perl

Hi:

If you want your code to be able to create multiple sub-processes to do some piece of work then threads offer one mechanism.

If you want your code to divide up an overall process into several parallel processes, then threads offer one mechanism.

If you want an alternative to recursive function (subroutine) calls, then threads offer on mechanism.

Building or using a threaded Perl is required to use threads.

If you are not concerned with doing any of the above kinds of processing, a threaded Perl isn't a concern. Using Perl threads does consume more memory than without. All things are a balance and your mileage may vary.

Regards!

...JRF...

Misak
New Member

Re: Thread enabled perl

Thanks James.
James R. Ferguson
Acclaimed Contributor

Re: Thread enabled perl

Hi (again):

Ah, what part of your question didn't I answer? A 3-point assignment suggests a thanks with very little actual help.

Regards!

...JRF...
Misak
New Member

Re: Thread enabled perl

I was looking for some more evidance. But i am sorry. I am new and may be i am wrong in asigning the point. never mind
James R. Ferguson
Acclaimed Contributor

Re: Thread enabled perl

Hi (again):

Perhaps this will help:

http://www.perlmonks.com/?node_id=868710

Regards!

...JRF...
Misak
New Member

Re: Thread enabled perl

Thanks for the link James