OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Mar 19, 2024 4:06 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Cooperative multitasking
PostPosted: Sun May 02, 2021 8:34 am 
Offline
Member
Member

Joined: Sun Feb 04, 2018 8:04 pm
Posts: 35
My goal is to build a cooperative multitasking OS.

It will compile from byte code similar to JVM and CIL and the cooperation will be built-in.

My thinking is that taking it out of the hands of the programmer and putting it under the control of the OS will prevent or reduce the instabilities we saw back in the days of Windows 9x, which gave CMT a bad rep.

The plus side for me is a lot less task switching, stack operations, cache flushes, etc. at the hardware level, all of which is very expensive in an OS designed for virtualization - already running on top of an OS that has the CPUs doing a lot of that for its own purposes with extra for the purposes of virtualization.

Anyone see any flaws in my thinking, or have tried the same thing and run into the same problems as 9x

_________________
Code or code not. There is no try.


Top
 Profile  
 
 Post subject: Re: Cooperative multitasking
PostPosted: Sun May 02, 2021 10:48 am 
Offline
Member
Member
User avatar

Joined: Fri Oct 27, 2006 9:42 am
Posts: 1925
Location: Athens, GA, USA
You might want to look at the Oberon operating system, which worked in a similar way; for some reason, Dr. Wirth had decided that interrupts were an ugly hack, so he designed the language and OS to avoid them. The compiler for the Oberon language would automatically insert yields into the code, ensuring that the OS scheduler would frequently run even without any timer interrupts.

_________________
Rev. First Speaker Schol-R-LEA;2 LCF ELF JAM POEE KoR KCO PPWMTF
Ordo OS Project
Lisp programmers tend to seem very odd to outsiders, just like anyone else who has had a religious experience they can't quite explain to others.


Top
 Profile  
 
 Post subject: Re: Cooperative multitasking
PostPosted: Wed May 05, 2021 1:40 pm 
Offline
Member
Member

Joined: Sun Feb 04, 2018 8:04 pm
Posts: 35
Interesting link Schol-R-LEA - Thanks!

I feel the same way about interruptions. A lot of pushing and popping right when when I'm at my busiest.
Sounds like an Amazon delivery, while I in the middle of a complicated all-consuming problem.

It's good to know others think alike, even if it is is does fly in the face of current thinking. I do the same with Physics.

_________________
Code or code not. There is no try.


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

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 5 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