Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://373065]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2017-07-21 21:09 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (335 votes). Check out past polls.