OSDev.org
https://forum.osdev.org/

How to make a fully preemptable kernel ?
https://forum.osdev.org/viewtopic.php?f=1&t=811
Page 1 of 1

Author:  mudi [ Thu Aug 02, 2001 11:00 pm ]
Post subject:  How to make a fully preemptable kernel ?

I want my kernel to be fully preemptable as QNX(as I know),
but I don't know how it is achieved !
By not using memory-variables ?

Is the following function preemptable ?

void test_kernel_function()
{
int i=100000;

while(i--);
}

..if not,how shoudl I chage it to be ?

What I expect from the above function is that,when it is
preempted it will set i=100000 so when the preemted process
gains back controll it will have an undefined value in i !

Am I completly on the wrong way ?

I would also like to discuss microkernels in detail
(general concepts,message-passing,memeory managment,etc..).
If you also feel so(and have patience for me),
drop me an email: [email protected]

thanks in advance

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/