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

how to configure sendmail server on red hat linux version 4 and what and all we Require?

3 Answers   Wipro,


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

2 Answers  


1.Diff between Active and passive FTP? 2.What is anacron? 3.Diff between yum update and yum install while doing for kernel? 4.root_squash and no_root_squash does what? 5.What are the commands will you execute to find a new hardware? 6.How will you find out a lun allocated from SAN? 7.What is the main diff in CaT5 and CAT6 cable, except the 1/100 and 1/1000? 8.What is stale NFS and How will you fix it? 9.What is kernel panic error? 10.How will you recover password and shadow file, in case both got deleted. Explain the steps? 11.Explain boot process 12.What is network bonding. Explain the steps? 13.What are the exit codes returned by FSCK? 14.What is LDOM? 15.Diff between block and character device?

2 Answers   Wipro,


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 stored in /proc ? what is significance of /proc in linux ?

3 Answers   NetApp,






if root user forget the password how to change it?

4 Answers   Wipro,


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

0 Answers   Alcatel,


Port number is already in use .. how to fix for apache..?

1 Answers   Google,


what is segmentation fault?

11 Answers   AdTel, NetApp,


how to create a ftp user on redhat linux 4.0?

6 Answers   Accenture,


What does exec family return?

1 Answers  


How to give the root permision to users?

3 Answers   Wipro,


Categories