CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
multithread program

 



tomhuan
stranger

Nov 1, 2001, 11:48 PM

Post #1 of 2 (278 views)
multithread program Can't Post

can anybody tell me that whether perl can perform multithread programming? how to? and any references available....



Coderifous
journeyman

Nov 2, 2001, 2:06 AM

Post #2 of 2 (276 views)
Re: multithread program [In reply to] Can't Post

But of course! UNIX (or the like): fork()
MS-Windows: Win32::Process

I'm really too tired to go into much detail, but check out your perldoc pages to learn about em. Their pretty easy:

Code
 
if($pid = fork ){
...parent stuff here.
}
else{
...kid stuff here.
}


or


use Win32;

Win32::Process::Create($process_obj, "path/to/exe",some,params,I,can't,remember);


Hope this helps... even just a little. Check out some of the other posts in here. They give more info:
TK: Auto-redraw?
is one of the posts relating to this stuff I think...




 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives