Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: atomic operations

by haoess (Curate)
on Jul 09, 2004 at 07:13 UTC ( #373065=note: print w/ replies, xml ) Need Help??


in reply to atomic operations

Which operating system do you use?

What do you know about the process you search for? If it's not its PID then there is no way to do it in an atomic operation. Tools like pgrep, pkill and killall search within the proc filesystem and can't be atomic.

Don't worry about your same PID problem. Linux for example uses 32768 different PID values. See and change PID_MAX_DEFAULT in include/linux/threads.h if that's not enough for you.

-- Frank

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://373065]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2016-06-25 10:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (325 votes). Check out past polls.