Madhu Reddy wrote:
> thanx for u r response...
> i did used
> use threads::shared;
> my %bounds : shared = ();
>
> but i didn't use following
>
> {
> lock(%bounds);
> #-- do something with %bounds
> }
>
> and i got following error while running script...
>
> perl.exe ap
CTED]> wrote:
> Madhu Reddy wrote:
>
> > hi,
> > I just want to find out how and when to use
> locks in
> > threads...
> > i have following program..
> > in following %bounds is global variable
> > each thread will update %bounds
> > and late
Madhu Reddy wrote:
> hi,
> I just want to find out how and when to use locks in
> threads...
> i have following program..
> in following %bounds is global variable
> each thread will update %bounds
> and later i am using %bounds...
>
> do i have lock the
hi,
I just want to find out how and when to use locks in
threads...
i have following program..
in following %bounds is global variable
each thread will update %bounds
and later i am using %bounds...
do i have lock the %bounds before each thread update ?
my %bounds = ();
for