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 |
What is atomic function / atomic variable ?
if root user forget the password how to change it?
what are Softirq's and how many major numbers be allocated in the linux kernel(2.4) ?
how to configure http server on red hat linux4.0?
what is stored at /lib/modules ?
what are the different ways the Linux can swich from User Space to Kernel Space & vice-versa ?
what is samba, what is configuration file, how it will work?
what is iptabe on redhat linux?
Explain process management system calls in linux?
What are the signals we have in Linux
what kind of information the linux driver modules (.ko ) files has ?
what are different ways the context switch happens from user to kernel space or vice-versa ?