Role of process priority in locking mechanism
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > Role of process priority in locking mechanism




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Role of process priority in locking mechanism  
Mona


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-22-04 12:47 PM

Can anyone explain me, role played by spls in kernel locks ?






[ Post a follow-up to this message ]



    Re: Role of process priority in locking mechanism  
Casper H.S. Dik


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-22-04 12:47 PM

"Mona" <indian.monalisa@gmail.com> writes:

>Can anyone explain me, role played by spls in kernel locks ?

This depends very much on the specific kernel you are playing with.

In traditional Unix kernel, the spl*() function are used to lock
out interrupts and some other activities while manipulating certain
data structures.  In those systems, spl*() functions as a primitive
locking scheme.

If you take a modern, multi-threaded kernel, like Solaris, you'll
find that you can no longer manipulate interrupt masks inside drivers;
rather, the system does it all for you.  With each driver mutex
Solaris associates a "cookie" which describes the interrupt properties
of the driver.  The interrupt handler can then safely obtain the lock
and lower level code can also safely obtain the lock as the kernel
will magically prevent interrupts from occuring while the lock is held.

Casper
--
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:14 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register