Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 ?

Answers were Sorted based on User's Feedback



if one of the critical section code (linked list) is under ISR & another one in kernel thread ?..

Answer / nt

In the kernel thread you need to disable interrupts before
critical section code starts and then enable interrupts
just after critical section ends. In this way u will make
sure that either ISR or kernel thread execute critical
section at a time.

Is This Answer Correct ?    12 Yes 0 No

if one of the critical section code (linked list) is under ISR & another one in kernel thread ?..

Answer / rulingminds

For this situation in SMP case spinlocks are used

Is This Answer Correct ?    3 Yes 0 No

if one of the critical section code (linked list) is under ISR & another one in kernel thread ?..

Answer / prasad

As per my knowledge disabling interrupts is fine with
single processor environment, but don't work in multi-
processor environment. Another processor may try to update
the critical section code while one processer is serving
the ISR. So in multi-processor environment it requires more
protected mechanism.

Is This Answer Correct ?    3 Yes 1 No

if one of the critical section code (linked list) is under ISR & another one in kernel thread ?..

Answer / suhas

Why cant we have lock mechanism working here. Assign a lock
to the address space pointed to by the data structure.
Something like monitors or semaphores, why wouldn't that
work fine...instead of disabling interrupts and stuff...

Is This Answer Correct ?    1 Yes 5 No

Post New Answer

More Linux System Calls Interview Questions

How to create secured appeche web sever ?

1 Answers   HCL,


What is atomic function / atomic variable ?

1 Answers   Broadcom,


What is the use of proc structure?

2 Answers   NetApp,


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 is the diff b/w MUTEX and semaphore?

12 Answers   Sony, TCS,


what are Softirq's and how many major numbers be allocated in the linux kernel(2.4) ?

1 Answers  


what is iptabe on redhat linux?

3 Answers   CDAC,


What does exec family return?

1 Answers  


why the kernel panic error was appering?

13 Answers   Air2Web, Allianz,


what is stored in /proc ? what is significance of /proc in linux ?

3 Answers   NetApp,


Categories