Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Role of process priority in locking mechanism
Can anyone explain me, role played by spls in kernel locks ?


Report this thread to moderator Post Follow-up to this message
Old Post
Mona
12-22-04 02:00 PM


Re: Role of process priority in locking mechanism
"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.

Report this thread to moderator Post Follow-up to this message
Old Post
Casper H.S. Dik
12-22-04 02:00 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Unix Programming archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 08:11 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.