LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-09-2004, 10:33 PM   #1
Bassam
Member
 
Registered: Mar 2003
Location: Malaysia
Posts: 63

Rep: Reputation: 15
Question How to make two perl functiones work concurrently ????


Hello Guys,
I am writing a perl program that consists of two main functionalities represented, each functionality represented by a SUB function (func1 and func2), and these two functiones should work concurrently by giving them an execution time of 2 seconds irrespective of running until the end of every function.

Now, how to make a concurrent execution for these two functions?
If the answer is using Mutithreading, then what kind of multithreading should I use, and how to start with???

Thanks for Help
Bassam
 
Old 03-10-2004, 04:56 AM   #2
mr_segfault
Member
 
Registered: Oct 2003
Location: Australia
Distribution: Redhat 9
Posts: 95

Rep: Reputation: 15
Hi Bassam,

fork is what you are looking for.

Do a google search for 'perl fork example' and you should get what you need.

Cheers

..segfault
 
Old 03-11-2004, 01:56 AM   #3
Bassam
Member
 
Registered: Mar 2003
Location: Malaysia
Posts: 63

Original Poster
Rep: Reputation: 15
Oh is it???!!!
I thought fork is availabel only in C programming.

Thanks for your help

Regards
Bassam
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with perl module for w3c validator to work on my local Apache+PHP+perl instal tbamt Linux - Software 0 12-16-2004 05:37 PM
How do I make a change to a current kernel? Would 'make oldconfig' work... jtp51 Slackware 11 11-01-2004 11:02 PM
threads won't run concurrently slicht Programming 2 09-22-2004 09:01 AM
configure, make and make install commands don't work for me Fenster Fedora 8 08-18-2004 10:58 AM
'make' and 'make install' commands dont work on my system? ginda Linux - Newbie 9 04-18-2004 11:17 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration