Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2016-10-01 23:29 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (9 votes). Check out past polls.