Thanks Kent for the Quick reply.

I need to maintain a code for performance testing which is fully written
using Threads and I have no clue of the concepts so I wanted some stuffs
for it.

-Akshay

On Tue, Jul 7, 2015 at 9:34 AM, Kent Fredric <kentfred...@gmail.com> wrote:

> On 7 July 2015 at 15:57, Akshay Mohit <akshaymohit2...@gmail.com> wrote:
> > I am not so experienced in Perl and got a task to do in Threads.
>
>
> The first question you have to ask is "Why do you need threads". What
> are you doing?
>
> Many people go "I need some sort of parallel process" and go "that
> needs threads!".
>
> But that is not so frequently true.
>
> If you just need two independent processes starting from one, then
> forks is all you need.
>
> If you're fine with having an IPC channel between processes, then
> forks might do the trick.
>
> If you just need to have some sort of IO operation system where
> interacting with external services doesn't "block" the execution of
> the perl program, then you don't need threads for that either, you
> need Async IO.
>
>
> using literal interpreter threads themselves is officially
> discouraged. ( See perldoc threads )
>
>
> But knowing exactly which solution you need and what tools you will
> need to do it depends entirely on what exactly you wish to do. So a
> lot more detail is required here to give a definitive answer.
>
>
> --
> Kent
>
> KENTNL - https://metacpan.org/author/KENTNL
>

Reply via email to