Re: Threads in Perl

2015-07-06 Thread Kent Fredric
On 7 July 2015 at 16:41, Akshay Mohit 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 the > code which is using th

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 concept

Re: Threads in Perl

2015-07-06 Thread Kent Fredric
On 7 July 2015 at 16:14, Akshay Mohit wrote: > I need to maintain a code for performance testing which is fully written > using Threads That doesn't seem to help me a lot. Because "Performance testing" in itself doesn't require threads. If you just need to load up processors, then forks will do

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 wrote: > On 7 July 2015 at 15:57, Akshay Mohit wrote:

Re: Threads in Perl

2015-07-06 Thread Kent Fredric
On 7 July 2015 at 15:57, Akshay Mohit 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 threads!". But that is n

Re: Threads and garbage collection

2011-02-23 Thread terry peng
2011/2/24 Shlomi Fish : > On Wednesday 23 Feb 2011 18:52:30 siegfr...@heintze.com wrote: >> I apologize if this appears multiple times. When I did not see it >> appear, I posted again. >> >> >> Does perl have a feature like C# and Java where memory is reclaimed and >> defragmented? >> >> >> I just

Re: Threads and garbage collection

2011-02-23 Thread Shlomi Fish
On Wednesday 23 Feb 2011 18:52:30 siegfr...@heintze.com wrote: > I apologize if this appears multiple times. When I did not see it > appear, I posted again. > > > Does perl have a feature like C# and Java where memory is reclaimed and > defragmented? > > > I just inherited 25K lines of perl cod

Re: threads & threads::shared & Threads::Semaphore

2010-01-08 Thread Aimee Cardenas
Ok, Thanks Jim. I may be able to slim down some of the hashes and/or maybe break up the program some. Thanks, Aimee On Jan 8, 2010, at 4:46 PM, Jim Gibson wrote: On 1/8/10 Fri Jan 8, 2010 2:06 PM, "Aimee Cardenas" scribbled: Hi, All, Hope everyone's new year is starting out very wel

Re: threads & threads::shared & Threads::Semaphore

2010-01-08 Thread Jim Gibson
On 1/8/10 Fri Jan 8, 2010 2:06 PM, "Aimee Cardenas" scribbled: > Hi, All, > > Hope everyone's new year is starting out very well. > > I'm having to adjust a perl program I wrote to manipulate some > genetics data. Originally, the program had no memory problems but now > that I've added a cou

Re: threads

2006-03-21 Thread Jay Savage
On 3/21/06, Octavian Rasnita <[EMAIL PROTECTED]> wrote: > From: "Stephen Kratzer" <[EMAIL PROTECTED]> > > > I'm not too familiar with threads, but I'll give it a go. You're still > > executing the download() sub seventy times one after another rather than > > concurrently. The async function will c

Re: threads

2006-03-21 Thread Octavian Rasnita
From: "Stephen Kratzer" <[EMAIL PROTECTED]> > I'm not too familiar with threads, but I'll give it a go. You're still > executing the download() sub seventy times one after another rather than > concurrently. The async function will created one new thread for the block > following it. You might try

Re: threads

2006-03-21 Thread Stephen Kratzer
I'm not too familiar with threads, but I'll give it a go. You're still executing the download() sub seventy times one after another rather than concurrently. The async function will created one new thread for the block following it. You might try a for loop which creates a new thread at each it

Re: threads

2006-03-21 Thread Jay Savage
On 3/21/06, Octavian Rasnita <[EMAIL PROTECTED]> wrote: > Hi, > > I have tried the following script: > use threads; > my $threads = async {foreach(1 .. 70) {download($_)}}; This creates a single thread to execute the block. The choice between $threads->create and async has to do with whether you'r

Re: Threads and data sharing

2005-09-10 Thread Robin
On Sunday 11 September 2005 01:08, zentara wrote: > First, you were not properly sharing the return values from the > threads. I have found that when you share hashes, only the first level > keys get shared, so you need to explicitly declare deeper shared hash > elements. OK. I'm not too concerned

Re: threads

2005-07-06 Thread Chris Devers
On Wed, 6 Jul 2005, Patricio Bruna V wrote: does perl support threads? Yes. Five seconds on Google would have answered this question. http://www.google.com/search?q=perl+threads -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTE

RE: threads

2005-07-06 Thread Tim Johnson
Yes. -Original Message- From: Patricio Bruna V [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 06, 2005 12:01 PM To: Perl Subject: threads does perl support threads? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Threads related document to refer in perl

2005-05-16 Thread Wiggins d'Anconia
Dave Gray wrote: >>I want to create threads using perl. >> >>So if any documents or links are there to refer please send me. > > > Here's some pretty basic threading code: > > Good article on the subject: http://www.p

Re: Threads related document to refer in perl

2005-05-16 Thread Dave Gray
> I want to create threads using perl. > > So if any documents or links are there to refer please send me. Here's some pretty basic threading code: -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

RE: Threads related document to refer in perl

2005-05-16 Thread Manav Mathur
|-Original Message- |From: Gayatri [mailto:[EMAIL PROTECTED] |Sent: Monday, May 16, 2005 10:40 AM |To: beginners@perl.org |Subject: Threads related document to refer in perl | | |Hello Friends, | | | |I want to create threads using perl. | |So if any documents or links are there to refer

Re: Threads Perl On Solaris

2004-09-10 Thread Chris Devers
On Fri, 10 Sep 2004, Eduardo Vazquez Rodriguez wrote: how can I create a thread on Perl (Im using SPARC architecture) so each thread (or child process) can process each function? and therefore increase speed Read this, try it out, then let us know if you have problems:

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=Threads&mode=all -Bill- __Sx___

RE: threads in perl

2004-01-25 Thread Igor Ryaboy
-Original Message- 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

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 p

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-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 w

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 p

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 i

RE: threads in perl

2004-01-20 Thread Igor Ryaboy
d if it takes more than define timeout. Thanks, 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 to be u

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: [EMA

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

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-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

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 > fr

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

2003-10-13 Thread Igor Ryaboy
Hi, The program is still exits sometimes without waiting for the threads to finish . I can't understand it. It seem like the "join" just doesn't waits to the process to finish , it just cleans after the thread and decrements the threads->list. Igor -Original Message- From: zentara [mailt

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"; >

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

Re: threads in perl

2003-10-12 Thread Kevin Pfeiffer
In article <[EMAIL PROTECTED]>, Zentara wrote: > On Sun, 12 Oct 2003 08:24:52 +0200, [EMAIL PROTECTED] (Igor > Ryaboy) wrote: [...] > Bear in mind I'm not a "threading expert", just a hacker with ideas. :-) > Here is a snippet to try. I used a global for $param instead of passing > it, but you may

RE: threads in perl

2003-10-11 Thread Igor Ryaboy
; in some way? THANKS A LOT Igor -Original Message- From: zentara [mailto:[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 s

Re: Threads blocking on solaris

2003-04-02 Thread Mark G
I dont know if this is the problem, but why do you issue a system sleepperl has a built it sleep [perldoc -f sleep]. Is perl system thread safe on Solaris ?? Maybe you launch your threads and they are sleeping and you dont realize it , just my 2 cents. Mark - Original Message - From: "

RE: threads and pids

2003-02-02 Thread Beau E. Cox
Hi - I got interested in 5.8 threads too... > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of > zentara > Sent: Sunday, February 02, 2003 4:53 AM > To: [EMAIL PROTECTED] > Subject: threads and pids > > > Hi, > I just got interested in 5.8 threads. I ha

Re: Threads

2003-02-02 Thread dan
o:[EMAIL PROTECTED]] > > Sent: Saturday, February 01, 2003 3:47 PM > > To: [EMAIL PROTECTED] > > Subject: Re: Threads > > > > > > I tried that, but it's still doing as before. I'll give you a more fuller > > outline of what there is, and what I wa

RE: Threads

2003-02-01 Thread Beau E. Cox
Hi dan - > -Original Message- > From: dan [mailto:[EMAIL PROTECTED]] > Sent: Saturday, February 01, 2003 3:47 PM > To: [EMAIL PROTECTED] > Subject: Re: Threads > > > I tried that, but it's still doing as before. I'll give you a more fuller > outline of

Re: Threads

2003-02-01 Thread dan
I tried that, but it's still doing as before. I'll give you a more fuller outline of what there is, and what I want it to do, maybe it may become clearer... I'm using a socket, and it loops in a sub. while () { # etc.. } once the code has finished connecting to the server, it runs another sub,

RE: Threads

2003-02-01 Thread Beau E. Cox
Hi - > -Original Message- > From: dan [mailto:[EMAIL PROTECTED]] > Sent: Saturday, February 01, 2003 6:46 AM > To: [EMAIL PROTECTED] > Subject: Threads > > > Hey again, > > I have another problem, this time involving threads. Here's what > I intend to > do, and what I have in code (roughly

RE: threads in perl

2002-07-24 Thread Nikola Janceski
2 3:29 PM > To: [EMAIL 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

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 l

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. H

RE: threads in perl

2002-07-24 Thread Akens, Anthony
perldoc thread This turned up a library on how to thread processes in perl. Seemed fairly straightforward. (though it did say it was experimental, so there may be a better module out there?) -Tony -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday,

Re: Threads

2002-01-07 Thread Mark Maunder
RAHUL SHARMA wrote: > Can anyone please help me if I can use threads in perl; > > If yes then what all library files I have to include. > > Thanks, > > Rahul. Perl supports threads, but it's not mature technology yet. You may need to compile your own version of Perl as the default install doesn'

Re: threads

2001-05-25 Thread Peter Scott
Also be aware that threads are currently considered experimental and can break under certain circumstances. As rare as those might be, no-one will claim they have no chance of occurring. Translation: don't use this for an air traffic control system or a cardiac monitoring system. (If you do

Re: threads

2001-05-25 Thread Lucy
> hello, > > i did the following in a script in accordance to perlthrtut > to find out the posibility to use threads and the answer was "We do not > have threads" probably true. to see what your perl was configured with do a perl -V > #!/usr/bin/perl > use Config; > if($Config{usethreads}){