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
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 |
Answer / rulingminds
For this situation in SMP case spinlocks are used
| Is This Answer Correct ? | 3 Yes | 0 No |
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 |
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 |
what is the difference between user APIs and kernel system calls ?
I would like to know whether Simado and Setu products are they EPBX or not ?
how to configure http server on red hat linux4.0?
what is samba, what is configuration file, how it will work?
How to get microseconds of system time from Redhat Linux 4.0
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?
what is segmentation fault?
how to configure sendmail server on red hat linux version 4 and what and all we Require?
What are the signals we have in Linux
what is mean by raid and what are all raids available even in software and hardware?
what is bus trap.
linux system its not booting up its showing groub error what i need to do?