What is atomic function / atomic variable ?
Answer / veerasena
atomic variables are the variables which can only be
manipulated atomically using atomic APIs. Linux declares
variable as atomic by using the type atomic_t. Basically
used a way to achieve synchronization.
an atomic operation is one which cannot be (or is not)
interrupted by concurrent operations and cannot be broken up
into smaller parts that could be performed by different
processors.
Atomic function is a function which is executed to
completion without interruption. Atomic function can also be
seen as a small critical section which is executed without
interruption, locking.
| Is This Answer Correct ? | 31 Yes | 2 No |
why the kernel panic error was appering?
How to give the root permision to users?
what is stored in /proc ? what is significance of /proc in linux ?
Explain process management system calls in linux?
What is the Diffrent between Redhat linux And suse linux
how to create samba server in fedora linux 9 ?
How to get microseconds of system time from Redhat Linux 4.0
if one of the critical section code (linked list) is under ISR & another one in kernel thread ? How you will synchronize for this critical section code ?
what is cups and how to configure?
what kind of information the linux driver modules (.ko ) files has ?
What does exec family return?
What are system calls used for process management in linux?