Threads in Perl

2015-07-06 Thread Akshay Mohit
Hi, I am not so experienced in Perl and got a task to do in Threads. Can anyone pls help me in knowing the Thread concepts in Perl so I can apply it for my task. Thanks in advance.! -Akshay

Re: Threads in Perl

2015-07-06 Thread Kent Fredric
On 7 July 2015 at 15:57, Akshay Mohit akshaymohit2...@gmail.com wrote: I am not so experienced in Perl and got a task to do in Threads. The first question you have to ask is Why do you need threads. What are you doing? Many people go I need some sort of parallel process and go that needs

Re: Threads in Perl

2015-07-06 Thread Akshay Mohit
Thanks Kent for the Quick reply. I need to maintain a code for performance testing which is fully written using Threads and I have no clue of the concepts so I wanted some stuffs for it. -Akshay On Tue, Jul 7, 2015 at 9:34 AM, Kent Fredric kentfred...@gmail.com wrote: On 7 July 2015 at 15:57,

Re: Threads in Perl

2015-07-06 Thread Kent Fredric
and a performance testing thing in perl and a performance testing thing in perl implemented using perl threads, not some other mechanism in perl that achieves the same thing? I'm still not seeing it. -- Kent KENTNL - https://metacpan.org/author/KENTNL -- To unsubscribe, e-mail: beginners

Re: Threads in Perl

2015-07-06 Thread Akshay Mohit
As I told earlier there is a code already written on Performance testing using Perl threads and I need to maintain and own it because the person who was doing it earlier left the organization, so I am bound to maintain the code which is using threads and presently cant make use of any other

Re: Threads in Perl

2015-07-06 Thread Kent Fredric
On 7 July 2015 at 16:41, Akshay Mohit akshaymohit2...@gmail.com wrote: As I told earlier there is a code already written on Performance testing using Perl threads and I need to maintain and own it because the person who was doing it earlier left the organization, so I am bound to maintain

Right way of doing threads in Perl?

2011-08-03 Thread Deyan Ginev
feeling). I will soon have access to a cluster of hexacore machines and am thinking of the best way to utilize them - obviously threaded programs would get me a long way in such a setup. Is there a best way to do threads in Perl? Do you know of any production-ready applications that are using

Re: Right way of doing threads in Perl?

2011-08-03 Thread Dr.Ruud
otherwise, which gave me a mixed feeling). I will soon have access to a cluster of hexacore machines and am thinking of the best way to utilize them - obviously threaded programs would get me a long way in such a setup. Is there a best way to do threads in Perl? Do you know of any production-ready

creating multiple threads in perl

2008-05-28 Thread perl pra
Hi gurus, I need to create n mulitple threads simaltaneously and all the threads should do same operation(just like Jmeter). i have a subroutine sub printname{ my ($tid)[EMAIL PROTECTED]; print name is guru tid is $tid\n; } all the threads

Re: creating multiple threads in perl

2008-05-28 Thread Chas. Owens
On Wed, May 28, 2008 at 7:53 AM, perl pra [EMAIL PROTECTED] wrote: Hi gurus, I need to create n mulitple threads simaltaneously and all the threads should do same operation(just like Jmeter). i have a subroutine sub printname{ my ($tid)[EMAIL PROTECTED];

Re: creating multiple threads in perl

2008-05-28 Thread Rob Dixon
perl pra wrote: I need to create n mulitple threads simaltaneously and all the threads should do same operation(just like Jmeter). i have a subroutine sub printname{ my ($tid)[EMAIL PROTECTED]; print name is guru tid is $tid\n; }

Threads in Perl

2004-03-02 Thread Tim Johnson
Can anyone give me a quick hint as to where to find documentation on how to use threads w/Perl? I understand that it's one of the main differences between 5.8.x and 5.6.x, but I'm having trouble finding docs on it. I get back way too many irrelevant results when I google, etc.

Re: Threads in Perl

2004-03-02 Thread WC -Sx- Jones
Tim Johnson wrote: Can anyone give me a quick hint as to where to find documentation on how to use threads w/Perl? CPAN is best to start off with -- that way you develop better questions =) http://search.cpan.org/search?query=Threadsmode=all -Bill

RE: threads in perl

2004-01-25 Thread Igor Ryaboy
- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of zentara Sent: Thursday, January 22, 2004 9:11 PM To: [EMAIL PROTECTED] Subject: Re: threads in perl On Thu, 22 Jan 2004 08:22:04 +0200, [EMAIL PROTECTED] (Igor Ryaboy) wrote: Hi, Thanks for your help, 1 more question related

RE: threads in perl

2004-01-22 Thread david
Igor Ryaboy wrote: Hi, Thanks for your help, 1 more question related to your advice Ok, How can I kill exec after it was started in different thread? Igor when you fork, you have the pid of the child process. when you exec, the program in exec will replaced the child process but the pid

RE: threads in perl

2004-01-21 Thread david
Igor Ryaboy wrote: I have no problem to alarm when timeout occurs in specific thread, I have a difficulty to abort a system command in that thread. in that case, fork a different process in your thread, replace system with exec and use the pid of the newly created process to abort itself when

RE: threads in perl

2004-01-21 Thread Igor Ryaboy
Hi, Thanks for your help, 1 more question related to your advice Ok, How can I kill exec after it was started in different thread? Igor -Original Message- From: david [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 21, 2004 8:10 PM To: [EMAIL PROTECTED] Subject: RE: threads in perl

Re: threads in perl

2004-01-20 Thread Roberto Álamos Moreno
CPAN http://search.cpan.org El Tue January 20 2004 03:44 Igor Ryaboy dijo : Hi, Thanks for your tips, Where can I get those modules? Igor -Original Message- From: david [mailto:[EMAIL PROTECTED] Sent: Monday, January 19, 2004 9:15 PM To: [EMAIL PROTECTED] Subject: RE: threads

RE: threads in perl

2004-01-20 Thread Igor Ryaboy
-Original Message- From: david [mailto:[EMAIL PROTECTED] Sent: Monday, January 19, 2004 9:15 PM To: [EMAIL PROTECTED] Subject: RE: threads in perl Igor Ryaboy wrote: Hi I want to kill a specific thread and thread-list to be updated (Like thread-join but without waiting). Igor

RE: threads in perl

2004-01-20 Thread david
Igor Ryaboy wrote: Hi, I have a thread that invokes system(command) that may stuck. I can't let this thread die because it may take a lot of time. Example: threads-new(\srun); .. .. sub srun { system(); threads-self-join; } I need to kill the system command if it takes more

RE: threads in perl

2004-01-20 Thread Igor Ryaboy
I have no problem to alarm when timeout occurs in specific thread, I have a difficulty to abort a system command in that thread. -Original Message- From: david [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 20, 2004 9:14 PM To: [EMAIL PROTECTED] Subject: RE: threads in perl Igor

RE: threads in perl

2004-01-19 Thread david
Igor Ryaboy wrote: Hi I want to kill a specific thread and thread-list to be updated (Like thread-join but without waiting). Igor instead of killing a thread, why not just let the thread die when you need to kill it? take a look at Thread::Exit and Thread::Suspend, they let you kill /

RE: threads in perl

2004-01-19 Thread Igor Ryaboy
Hi, Thanks for your tips, Where can I get those modules? Igor -Original Message- From: david [mailto:[EMAIL PROTECTED] Sent: Monday, January 19, 2004 9:15 PM To: [EMAIL PROTECTED] Subject: RE: threads in perl Igor Ryaboy wrote: Hi I want to kill a specific thread and thread-list

RE: threads in perl

2004-01-17 Thread Igor Ryaboy
Hi I want to kill a specific thread and thread-list to be updated (Like thread-join but without waiting). Igor -Original Message- From: david [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 14, 2004 9:15 PM To: [EMAIL PROTECTED] Subject: RE: threads in perl Igor Ryaboy wrote: Hi

threads in perl

2004-01-14 Thread Igor Ryaboy
Hi All! I am running a multithread program and threads may stuck. I need to be able to terminate those threads after some defined period of time. I can't use a detach because I don't want to leave this thread run forever and I can't use join because the thread never ends. Any ideas? Please

RE: threads in perl

2004-01-14 Thread Igor Ryaboy
to kill the process! (Verilog simulation in my case) Thanks, Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of zentara Sent: Wednesday, January 14, 2004 5:28 PM To: [EMAIL PROTECTED] Subject: Re: threads in perl On Tue, 13 Jan 2004 17:17:20 +0200, [EMAIL

RE: threads in perl

2004-01-14 Thread david
Igor Ryaboy wrote: Hi, (Please ignore the previous mail.) In this example this fellow detaches all useless threads. In my case this is not an option , because a detached thread never ends. this is plain wrong. For correct thread managing it is enough to remove the detached thread from

threads in perl

2004-01-13 Thread Igor Ryaboy
help :) Igor -Original Message- From: zentara [mailto:[EMAIL PROTECTED] Sent: Monday, October 13, 2003 8:19 PM To: [EMAIL PROTECTED] Subject: Re: FW: threads in perl On Mon, 13 Oct 2003 18:29:09 +0200, [EMAIL PROTECTED] (Igor Ryaboy) wrote: Very Nice , There is only one unsolved issue

RE: threads in perl

2003-10-14 Thread Igor Ryaboy
:[EMAIL PROTECTED] Sent: Monday, October 13, 2003 8:19 PM To: [EMAIL PROTECTED] Subject: Re: FW: threads in perl On Mon, 13 Oct 2003 18:29:09 +0200, [EMAIL PROTECTED] (Igor Ryaboy) wrote: Very Nice , There is only one unsolved issue here: Your program may exit with other threads are still

RE: FW: threads in perl

2003-10-13 Thread Igor Ryaboy
threads::Pool? -Original Message- From: zentara [mailto:[EMAIL PROTECTED] Sent: Monday, October 13, 2003 1:16 AM To: [EMAIL PROTECTED] Subject: Re: FW: threads in perl On Sun, 12 Oct 2003 15:21:54 +0200, [EMAIL PROTECTED] (Igor Ryaboy) wrote: This is useful, thanks, but: I need in general

RE: threads in perl

2003-10-12 Thread Igor Ryaboy
:[EMAIL PROTECTED] Sent: Friday, October 10, 2003 7:44 PM To: [EMAIL PROTECTED] Subject: Re: threads in perl On Wed, 8 Oct 2003 13:13:13 +0200, [EMAIL PROTECTED] (Igor Ryaboy) wrote: Hi, I need help in simple threaded solution. How can I join the active thread? After I was started the thread I

FW: threads in perl

2003-10-12 Thread Igor Ryaboy
which thread should I join. Thanks Igor -Original Message- From: zentara [mailto:[EMAIL PROTECTED] Sent: Sunday, October 12, 2003 2:47 PM To: [EMAIL PROTECTED] Subject: Re: threads in perl On Sun, 12 Oct 2003 08:24:52 +0200, [EMAIL PROTECTED] (Igor Ryaboy) wrote: I'll be more specific: I

Re: threads in perl

2003-10-12 Thread Kevin Pfeiffer
to pass the $param. Also maybe you should check out the module Thread::Pool, which manages threads and tasks. #!/usr/bin/perl use threads; my @kiddies; my $param =10; while ($param 0){ print $$ starting loop $_; push @kiddies, threads-new(\sub1); print $$ exiting loop $_\n

Re: threads in perl

2003-10-12 Thread Kevin Pfeiffer
In article [EMAIL PROTECTED], Kevin Pfeiffer wrote: [...] What does the last line do. I looked at man threads: $thread-join This will wait for the corresponding thread to join. When the thread finishes, join() will return the return values of the entry point

Re: threads in perl

2003-10-12 Thread Steve Grazzini
On Sun, Oct 12, 2003 at 05:35:21PM +0200, Kevin Pfeiffer wrote: In article [EMAIL PROTECTED], Zentara wrote: [EMAIL PROTECTED] (Igor Ryaboy) wrote: foreach (@kiddies){ $_-join(); } Printing these out (i.e.): foreach (@kiddies){ $_-join(); print $_ joined.\n; } gives me:

threads in perl

2003-10-08 Thread Igor Ryaboy
Hi, I need help in simple threaded solution. How can I join the active thread? After I was started the thread I want him to join itself at the end and go back to the main Example: # main program $thr1=new threads \sub_name; $thr2=new threads \sub_name; $thr3=new threads \sub_name; $thr4=new

threads in perl

2002-07-24 Thread rohana
Hello All, I want to execute same perl procedure with different parameters at the almost same time in a perl program indefendantly. (next process should be started without waiting for the end of previous one) The procedure is located in .pm file. How can I use thread in perl to get my work

RE: threads in perl

2002-07-24 Thread Akens, Anthony
, July 24, 2002 1:57 AM To: [EMAIL PROTECTED] Subject: threads in perl Hello All, I want to execute same perl procedure with different parameters at the almost same time in a perl program indefendantly. (next process should be started without waiting for the end of previous one) The procedure

Re: threads in perl

2002-07-24 Thread Janek Schleicher
rohana wrote at Wed, 24 Jul 2002 08:57:17 +0200: I want to execute same perl procedure with different parameters at the almost same time in a perl program indefendantly. (next process should be started without waiting for the end of previous one) The procedure is located in .pm file. How

Re: threads in perl

2002-07-24 Thread Chas Owens
On Wed, 2002-07-24 at 02:57, [EMAIL PROTECTED] wrote: Hello All, I want to execute same perl procedure with different parameters at the almost same time in a perl program indefendantly. (next process should be started without waiting for the end of previous one) The procedure is

RE: threads in perl

2002-07-24 Thread Nikola Janceski
PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: threads in perl On Wed, 2002-07-24 at 02:57, [EMAIL PROTECTED] wrote: Hello All, I want to execute same perl procedure with different parameters at the almost same time in a perl program indefendantly. (next process should be started