Hi Sharan,

Have you considered using asynchronous events instead? You might find it's
easier to work out. (See EV, Coro, AnyEvent, etc. in the CPAN)

Otherwise, just.. read the manual on threads?

- Anneli

2011/11/6 Sharan Basappa <sharan.basa...@gmail.com>

> Hello,
>
> We are in the process of writing a perl program that can send network
> traffic on the native pc network port.
> Essentially, the perl program emulates as if different traffic type sources
> are sending the traffic data.
> For this, our plan is to have a independent thread to emulate each traffic
> type (e.g. slow/small traffic, small/fast traffic, large/infrequent traffic
> etc.)
> So, a mail program would spawn multiple threads and these threads would
> send events back to main thread.
> The main thread would then send traffic depending on the type of event it
> receives.
>
> Can someone let me know what perl constructs to use for implementing this
> program. This is our first time with perl threads.
>
> Thanks ...
>

Reply via email to