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
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 application errorr The instruction at "0x2808335c"

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 %bounds before each thread updat