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 samba, what is configuration file, how it will work?
what is mean by raid and what are all raids available even in software and hardware?
How to give the root permision to users?
What is the use of proc structure?
What does exec family return?
linux file defaults permition
what are the different ways the Linux can swich from User Space to Kernel Space & vice-versa ?
What are system calls used for process management in linux?
what are different ways the context switch happens from user to kernel space or vice-versa ?
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?
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 ?
how to configure http server on red hat linux4.0?