J
j
Hi all,
I tried to use IPC::Semaphore but tried for a long time without success.
What I want to do is like this :
I want to limit a perl script to be run by 10 users concurrently only. I
want to create 10 semaphore and each user before runing the script, check if
any one of the semaphore available. If not then it die. If there is
available, it takes one. After the script ended, they release the semaphore.
Please help.
Thanks.
Perseus
I tried to use IPC::Semaphore but tried for a long time without success.
What I want to do is like this :
I want to limit a perl script to be run by 10 users concurrently only. I
want to create 10 semaphore and each user before runing the script, check if
any one of the semaphore available. If not then it die. If there is
available, it takes one. After the script ended, they release the semaphore.
Please help.
Thanks.
Perseus