OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 2:47 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Process Kernel vs Event Kernel
PostPosted: Sun Apr 30, 2017 10:27 am 
Offline

Joined: Sun Apr 30, 2017 10:14 am
Posts: 18
Hello, I am new here and a CS student starting to learn about OS implementation. While reading about microkernel implementation I found the mention of a process kernel as opposed to an event kernel. Could someone please clarify these concepts for me?

Thank you in advance


Top
 Profile  
 
 Post subject: Re: Process Kernel vs Event Kernel
PostPosted: Sun Apr 30, 2017 4:42 pm 
Offline
Member
Member
User avatar

Joined: Fri Mar 07, 2008 5:36 pm
Posts: 2111
Location: Bucharest, Romania
This isn't standard terminology. My guess is that you've read something about increasing CPU usage using event-driven systems vs threading (threads are sometimes called lightweight processes for reasons I disagree with).

Could you give us some context or perhaps a link to the material you were reading so we can try to interpret what the author really meant?

_________________
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]


Top
 Profile  
 
 Post subject: Re: Process Kernel vs Event Kernel
PostPosted: Tue May 02, 2017 2:21 pm 
Offline
Member
Member
User avatar

Joined: Thu Jul 12, 2012 7:29 am
Posts: 723
Location: Tallinn, Estonia
Yeah, so.

Execution model: process kernel (one stack per thread) <---> interrupt kernel (one stack per CPU, continuations)

These are quite deeply discussed in e.g. atomic-osdi99.pdf excerpts from which you can find here.

You could probably trace related literature from that document, or i can dig more from my collection if you're interested.

Quote:
Some processor architectures inherently favor the process model and process model kernels are easier to make fully preemptible. Although full preemptibility comes at a cost, this cost is associated with preemptibility, not with the process model itself. Process model kernels use more per-thread kernel memory, but this is unlikely to be a problem in practice except for power-constrained systems


I'm not sure where the "event" model comes in your text, I'd need more context or the reference to the actual paper to be able to help.

_________________
Learn to read.


Top
 Profile  
 
 Post subject: Re: Process Kernel vs Event Kernel
PostPosted: Wed Aug 30, 2017 3:33 pm 
Offline

Joined: Sun Apr 30, 2017 10:14 am
Posts: 18
dozniak, sorry for the delayed answer, and thanks for your input. My small OS project was put on hold and only now I have had the time to get back to it.

I've read the paper on the Fluke kernel and pretty much all my questions have been answered. I believe the term "event kernel" is a different term for the interrupt model described in the paper. I've seen this mainly in papers related to the description of the L4 microkernel family such as the one at http://sigops.org/sosp/sosp13/papers/p1 ... nstone.pdf

Can you tell me where I can find the collection you referred for further reading?

Thanks in advance


Top
 Profile  
 
 Post subject: Re: Process Kernel vs Event Kernel
PostPosted: Thu Aug 31, 2017 3:12 pm 
Offline
Member
Member

Joined: Sat Mar 01, 2014 2:59 pm
Posts: 1146
I haven't come across these terms before but judging from the meaning of the words "process" and "event", and the "event-driven" programming paradigm, I would imagine that a "process kernel" is structured around multiple processes running at the same time, each doing their own thing, while an "event" kernel is structured around each process sleeping until it receives an event (user interaction, disk I/O completed, and so on) at which point it does a short bit of work before returning to the kernel where the next event is delivered to the next process. Of course the former kernel probably has a way for handling events and sleeping processes until events arrive, and the latter kernel probably has a way for processes to execute concurrently, the difference is in what the foremost paradigm is (which would be reflected in the general design/structure/behaviour of the kernel and APIs).

_________________
When you start writing an OS you do the minimum possible to get the x86 processor in a usable state, then you try to get as far away from it as possible.

Syntax checkup:
Wrong: OS's, IRQ's, zero'ing
Right: OSes, IRQs, zeroing


Top
 Profile  
 
 Post subject: Re: Process Kernel vs Event Kernel
PostPosted: Sat Oct 14, 2017 5:23 am 
Offline
Member
Member
User avatar

Joined: Thu Jul 12, 2012 7:29 am
Posts: 723
Location: Tallinn, Estonia
josecm wrote:
Can you tell me where I can find the collection you referred for further reading?


I have a pile for OSdev related papers and documents in my drop box; send me your email in PM and i'll give you access.

_________________
Learn to read.


Top
 Profile  
 
 Post subject: Re: Process Kernel vs Event Kernel
PostPosted: Tue Oct 17, 2017 5:21 am 
Offline

Joined: Sun Apr 30, 2017 10:14 am
Posts: 18
dozniak wrote:
josecm wrote:
Can you tell me where I can find the collection you referred for further reading?


I have a pile for OSdev related papers and documents in my drop box; send me your email in PM and i'll give you access.


I can't send you a PM, the PM button won't appear next to your profile :(


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: DotBot [Bot] and 21 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group