Re: [Tutor] static variables - lock/semaphore

2006-07-02 Thread Alan Gauld
> if we compare rowlevel locking and global variables > which scales and is better >>Alan Gauld <[EMAIL PROTECTED]> wrote: >>> is there a way to use some sort of semaphore or lock >>> so that it is not accessed simultaneously > > > > There are ways of doing this in Python but if you are using >

Re: [Tutor] static variables - lock/semaphore

2006-07-01 Thread Kent Johnson
anil maran wrote: > hi > i have a program that is run on a website, and as it > is run from a website, it can be called more than once > and hence could end up corrupting db/data > is there a way to use some sort of semaphore or lock > so that it is not accessed simultaneously > the problem is it c

Re: [Tutor] static variables - lock/semaphore

2006-07-01 Thread Alan Gauld
> i have a program that is run on a website, and as it > is run from a website, it can be called more than once > and hence could end up corrupting db/data > is there a way to use some sort of semaphore or lock > so that it is not accessed simultaneously There are ways of doing this in Python but

[Tutor] static variables - lock/semaphore

2006-07-01 Thread anil maran
hi i have a program that is run on a website, and as it is run from a website, it can be called more than once and hence could end up corrupting db/data is there a way to use some sort of semaphore or lock so that it is not accessed simultaneously the problem is it can be done with static variables