In SMP operating sytem provides spinlock to execute critical section of code that is shared among various processors. Spinlocks keeps every other processors just to spin around and there by prevents them from generating interrupts which could interrupt the processor which is executing the critical section. On Thu, Jun 17, 2010 at 12:39 PM, amit <[email protected]> wrote:
> 1. a mad user tries to allocate 1 gb memory using calloc. > but the program fails after allocationg about 800mg(appx. i dont > remember). Tell me what could have gone wrong? > > 2. > We know disabling interrupts works only if it is single processor(i.e > local disabling of interrupts). > > Consider this case where we have a SMP(symmetric multi proc) the > processor. Processor-1 wants to perform some critical operation so it > disables all the interrupts. > > What will happen when processor-2 throws an interrupt. > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<algogeeks%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
