What is atomic function / atomic variable ?



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

Post New Answer

More Linux System Calls Interview Questions

what is the difference between user APIs and kernel system calls ?

1 Answers   NetApp,


linux file defaults permition

8 Answers  


I would like to know whether Simado and Setu products are they EPBX or not ?

0 Answers   IBM,


what are the backup utilites on red hat linux 4.0?

4 Answers   Wipro,


what is cups and how to configure?

7 Answers   IBM,






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 ?

4 Answers   NetApp,


what are the different ways the Linux can swich from User Space to Kernel Space & vice-versa ?

2 Answers   NetApp,


what happens when we do insmod & rmmod in Linux Device Drivers ?

2 Answers  


how to create samba server in fedora linux 9 ?

2 Answers   Accenture,


what are different ways the context switch happens from user to kernel space or vice-versa ?

0 Answers   Alcatel,


What is atomic function / atomic variable ?

1 Answers   Broadcom,


what is iptabe on redhat linux?

3 Answers   CDAC,


Categories