10-29-2012
Atomic Operations
Hello
I am a newbie in linux.
Please tell me what are atomic operations in Linux.
IS i++ a atomic oparation??
Please help..
4 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
if I rename a dir
mv dir dir2
Is this operation atomic? Suppose there 100 files in dir, does linux rename them one by one or at once?
In other words, is there a time at which both dir and dir2 exist, with dir has, say 30 files and dir2 has the rest 70 files? (4 Replies)
Discussion started by: meili100
4 Replies
2. Programming
Hello,
I need to implement a locking system in C. My problem is how to make the check if the lock file exist and locking it atomic operation.
I want to make something like this:
FILE* lock_fname;
lock_fname = fopen ( "file.lock", "r");
/*check if file exsists*/
if (lock_fname)
{
fclose... (7 Replies)
Discussion started by: tsurko
7 Replies
3. Programming
hi guys.
can we use fread and fwrite with pipes to write data more than PIPE_BUF atomically since they lock FILE object until I/O operation finish? (1 Reply)
Discussion started by: majid.merkava
1 Replies
4. UNIX for Dummies Questions & Answers
Are system calls atomic operations?
Is a system call can be interrupted? (2 Replies)
Discussion started by: vistastar
2 Replies