Re: locks in threads

2003-02-27 Thread david
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

Re: locks in threads

2003-02-27 Thread Madhu Reddy
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

Re: locks in threads

2003-02-27 Thread david
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

locks in threads

2003-02-26 Thread Madhu Reddy
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