How to make a fully preemptable kernel ?
Posted: Thu Aug 02, 2001 11:00 pm
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
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