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

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

0 Answers   IBM,


How to create secured appeche web sever ?

1 Answers   HCL,


what is iptabe on redhat linux?

3 Answers   CDAC,


Explain process management system calls in linux?

0 Answers  


what is cups and how to configure?

7 Answers   IBM,






how to configure http server on red hat linux4.0?

5 Answers   IBM,


1. Where the History file can be located? 2. How will you harden the server? 3. Diff between Raid 1 and Raid 5? 4. What is the largest disk size can be used in LVM? 5. How will you remove a PV from lvm without any data loss? 6. What is the diff between ext3 and ext2 File system? 7. How we can use resize2fs, what is the purpose? 8. What is the purpose of LVM? Why it is used? 9. If the FS is in read-only mode, so we cannot create any file. How will you fix it? 10. How to create swap partition after OS installation? 11. What is the diff between ssh and telnet? 12. How to find out the dependency required for a package?

3 Answers   IBM,


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

1 Answers   NetApp,


what is the diff b/w MUTEX and semaphore?

12 Answers   Sony, TCS,


what is sudo on linux?

3 Answers   IBM,


what is segmentation fault?

11 Answers   AdTel, NetApp,


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,


Categories