is there a need for realmode multitasking?

Programming, for all ages and all languages.
Post Reply
kubeos
Member
Member
Posts: 138
Joined: Tue Jan 30, 2007 2:31 pm
Location: Kamloops BC, CANADA
Contact:

is there a need for realmode multitasking?

Post by kubeos »

Hello,

I was wondering if anyone thinks that there would be a need for a real mode multitasking OS kernel. I have written one that works pretty good. It sets up a stack for each task and launching a new task is as simple as doing:

Code: Select all

starttask(WORD codesegment,WORD codeoffset,char *nameoftask)
I don't think there is a need on modern pc's, but how about embedded stuff?
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: is there a need for realmode multitasking?

Post by Combuster »

From what I heard, the standard for x86 embedded is the 486. Long story short, it means that protected mode has a better ROI.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
Alboin
Member
Member
Posts: 1466
Joined: Thu Jan 04, 2007 3:29 pm
Location: Noricum and Pannonia

Re: is there a need for realmode multitasking?

Post by Alboin »

Combuster wrote:From what I heard, the standard for x86 embedded is the 486. Long story short, it means that protected mode has a better ROI.
If you're looking for a better ROI, you might as well just look into something ARM based. ;)
C8H10N4O2 | #446691 | Trust the nodes.
pcmattman
Member
Member
Posts: 2566
Joined: Sun Jan 14, 2007 9:15 pm
Libera.chat IRC: miselin
Location: Sydney, Australia (I come from a land down under!)
Contact:

Re: is there a need for realmode multitasking?

Post by pcmattman »

And ARM is almost easier than x86, until you reach things like virtual memory and interrupts :D
User avatar
Brendan
Member
Member
Posts: 8561
Joined: Sat Jan 15, 2005 12:00 am
Location: At his keyboard!
Contact:

Re: is there a need for realmode multitasking?

Post by Brendan »

Hi,

Is there a market for an OS designed for ARM?

I've always assumed that systems that use ARM fall into one of these categories:
  • Custom hardware with a custom "bare metal" application; where anything more than a boot loader and some libraries just gets in the way (no OS desired).
  • Smartphones, PDAs and mobile phones; where an OS is desired, but it's impossible to change the OS and an OS developer would need to convince the manufacturers to throw away all the software they've already been using and adopt an untested alternative OS (more chance of being attacked by a flock of flying pigs).
  • A few PDAs, notebooks, laptops and thin clients, where the OS can be replaced by the user; that are so rare that an alternative OS's target market would be smaller than the target market for the old/obsolete Playstation 1.
In addition, all existing 80x86 CPU manufacturers are currently targeting the small device market - VIA has for ages, Intel's Atom, AMD's Geode, SiS Vortex86, etc. I don't think it'll be long before most of the larger small systems (which are an alternative ARM OS's only market) shift to 80x86, if they haven't already.

Like it or not, to me it looks like the ROI for ARM is almost zero.

Of course I could be entirely wrong - I don't even know if any of the equipment I own uses ARM (I'm guessing my ethernet switches and KVMs might, but then they'd fall into the "custom hardware with a custom application" category).


Cheers,

Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
jal
Member
Member
Posts: 1385
Joined: Wed Oct 31, 2007 9:09 am

Re: is there a need for realmode multitasking?

Post by jal »

Brendan wrote:Like it or not, to me it looks like the ROI for ARM is almost zero.
But then again, ROI for any homebrew OS is 0 :).


JAL
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re: is there a need for realmode multitasking?

Post by Solar »

Brendan wrote:Hi,

Is there a market for an OS designed for ARM?
http://www.openpandora.org?
Every good solution is obvious once you've found it.
kubeos
Member
Member
Posts: 138
Joined: Tue Jan 30, 2007 2:31 pm
Location: Kamloops BC, CANADA
Contact:

Re: is there a need for realmode multitasking?

Post by kubeos »

That Pandora thing looks cool, but I think one of those mini-laptops would be better. And the laptops are around the same price.

[EDIT]
I take my previous statement back. That thing is a lot smaller than I realized. I watched it running Ubuntu in the video and it's got some nice speed there. Makes me want to learn a little more about ARM.

Well, now that I've thought about it a little more, multitasking in real mode is very easy to do. So if there was a need for it I'm sure a company could find someone to code it. Heck it only took me about 2 days.
User avatar
Brendan
Member
Member
Posts: 8561
Joined: Sat Jan 15, 2005 12:00 am
Location: At his keyboard!
Contact:

Re: is there a need for realmode multitasking?

Post by Brendan »

Hi,
Hehe - while you're pre-ordering your Pandora and waiting for it to exist, you might like to pre-order my OS for the Pandora and wait for that to exist too.... ;)


Cheers,

Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
User avatar
Dex
Member
Member
Posts: 1444
Joined: Fri Jan 27, 2006 12:00 am
Contact:

Re: is there a need for realmode multitasking?

Post by Dex »

Some of us have been part of the Pandora project from the start and have been work on a OS for it 8) .
Its the next step up from the GP2x and for those who are not part of the dev team or can not wait, you can get started on beagleboard http://beagleboard.org/

ARM is the way to go, everything from the i-pod to the i-pone users it.
User avatar
Brendan
Member
Member
Posts: 8561
Joined: Sat Jan 15, 2005 12:00 am
Location: At his keyboard!
Contact:

Re: is there a need for realmode multitasking?

Post by Brendan »

Hi,
Dex wrote:Some of us have been part of the Pandora project from the start and have been work on a OS for it 8) .
Its the next step up from the GP2x and for those who are not part of the dev team or can not wait, you can get started on beagleboard http://beagleboard.org/
Sorry - I didn't mean to poke fun at these projects. I just think that if half of the people that buy these systems install your OS then you'd have 6 end-users... :roll:

50% of a small market (with no competition) can be much better than 1% of a large market like 80x86 (with lots of competition). However, even for obscure systems like these you're still competing against Microsoft (Windows Embedded) and Linux, so you're not really gaining much.
Dex wrote:ARM is the way to go, everything from the i-pod to the i-pone users it.
Everything from the proprietory locked-down iPod all the way to the proprietory locked-down iPhone?

I really liked this part of the iPodLinux wikipedia page:
Wikipedia wrote:The bootloader for the 4th generation iPod was extracted by Nils Schneider, a German computer science student. Previous software methods to extract the necessary bootloader to enable Linux to be ported no longer worked. Bernard Leach had previously discovered how to operate the piezo buzzer inside the iPod. Schneider was able to use this program with some modifications to make a series of clicks for each byte of bootloader. The extraction process took 22 hours to complete and required Schneider to construct a soundproof box to prevent outside interference with the process.
=D>

IMHO the only good thing about the iPod is that it's small enough to use as a suppository (although Apple don't recommend using this method when returning them to the place of purchase)... :shock:


Cheers,

Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Re: is there a need for realmode multitasking?

Post by Brynet-Inc »

Just a note, "iPodLinux" is a port of uClinux to the older generations of iPods, the new iPhone/iTouch devices use a scaled down version of OS X.. and there is a project related to porting Linux to them is called "iPhoneLinux", and AFAIK, they only have a bootloader written at the moment.. but they've reverse engineered quite a bit.

I wouldn't completely belittle hobbyists interested in writing OS's for embedded devices, if anything, it looks like it takes a great deal of work.

http://www.iphonelinux.org/index.php/Main_Page

Presently, I think the OpenMoko phones are rather neat.. they appear to be semi-open.

Mods: Perhaps this topic should be... split? :?
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
Post Reply