Re: creating multiple threads in perl
[email protected] ("Chas. Owens")
| Newsgroups | perl.beginners |
|---|---|
| Message-ID | <[email protected]> |
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)=@_; > > print "name is guru tid is $tid\n"; > > } > > > > all the threads should execute the above subroutine simaltaneoulsy. > > > Thanks, > siva > Are you certain you need threads? It sounds like fork will do the job. -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read.