Unix Technical Forum

Kernel Preemption

This is a discussion on Kernel Preemption within the lucky.openbsd.tech forums, part of the OpenBSD category; --> Hi all, I've been doing some reading on the OpenBSD kernel and found out that the kernel is non-premeptible. ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > lucky.openbsd.tech

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-22-2008, 11:46 AM
Bijoy Thomas
 
Posts: n/a
Default Kernel Preemption

Hi all,

I've been doing some reading on the OpenBSD kernel and found out that
the kernel is non-premeptible. So, if a process is running in kernel
mode, it can never be pre-empted unless it voluntarily calls tsleep() or
it returns to user space. Since, it is the timer interrupt handler that
calculates process run times and calls schedule() if some process
exceeded its time limit, how does it know not to do a schedule() if the
current process is in kernel mode? How can it know if the current
process is in user mode or kernel mode?

Regards,
Bijoy.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:18 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com