Passing args to a running thread...

  • Thread starter ..:: parizienne ::..
  • Start date
P

..:: parizienne ::..

Hello everybody,

I would like to have a program structure allowing me to pass args to a
running thread in perl. I didn't see any topic on this anywhere. I
think it is not possible with just a command.

I thought to a different structure. Could you please tell me if it is
possible to do that, or is there any other way to achieve this or
maybe am I completely wrong ???

1. Control

I would like to control threads. It means, is there a way to
pause/resume a thread execution once launched, or do I have to stop
the thread, get temp data and then launching a new thread again ?

2. Passing args

If I want to pass additional args to a running thread, do I have to
stop the thread, get data back and then relaunch the thread with old
data and new args ?


Thanks in advance


Sincerely yours


Dan
 
P

..:: parizienne ::..

Michal Wojciechowski said:
I suppose you'll find all the answers you need in the tutorial on
threads in Perl - see 'perldoc perlthrtut'.

Yep, sorry, I already read it. Thanks...

Could maybe someone give me an advice...

Is it better to use Thread ? Or fork () ?

If I want an inter-thread communication ?

Thanks

Dan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top