Questions for an OS Designer

xiaoxiao2021-03-06  107

Here are questions that you should answer before you start to code an OS. It's not a secret that every program must be designed before it is written (implemented). Also it's not a secret that a very few of programs are written this way .. ..................

Such an approach is very harmful. Design is finished in breaks between coding work and is dictated by things that are already written and work. Programmers tend to think "I'll change it later" but mostly later never comes. Nobody really wants to change Already Working Code to Fit A Changed Design.

IT May Be Very Painful if you write an OS. Because of Design Flaws or Incomplete Design The WHOLE Project May Brought Down OR at Best Take Months To Redesign and Rewrite Big Parts.

Answering questions suggested here will not form a full design specification. However it will not let coding go completely off road. All of them should be answered before writing a line of code. Certain questions may be ignored if they are irrelevant, eg you don ' T NEED To Think About File Systems if you don't Plan To Support Mass Storage Devices. from The answered Questions Should Not ContraDict. Where I Feel Necessary, Hints Are Typed As Italic.

What is a primary Goal of MY OS?

Is it a standard (low end) desktop system? User is dummy, highest priority for hardware and software compatibility. Is it a high-end desktop system? User is CAD / CAM engineer, highest priority for performance and certain hardware / software compatibility. Is it a real-time oriented system? User is a professional programmer, highest priority for performance, defined response time, easy extendable hardware support and programming control.What platforms my OS is going to support?

Will it support multiprocessing? What kind of multiprocessor platforms? Symmetric? (All processors are exactly the same). Asymmetric? (CPUs may be different in architecture and computing power). Both? Will it support only local multiprocessing? (All CPUs are connected through a local bus). Distributed multiprocessing? (CPUs are connected through network-like connection). Both? What is the target hardware system? Desktop? (more or less standard hardware set). Customizable (embedded) hardware? (If the latter IS An Answer You'll Likey Have To Individally Support Every EVEN Compatible Processor.

Will IT be a multitasking os?

What kind of multitasking will it provide for applications? Cooperative? (Tasks yield CPU when they do not need it, demonstrating good will). Preemptive? (Tasks are given a defined amount of CPU time). Do I need to protect tasks from each other well? What is a relationship between tasks in terms of living space? Do they share the same address space? Completely separated? Both? How will different tasks communicate with each other? What will be a memory model of space that a task runs IN? SHOULD I FAVOR SIMPLITY AND SPEED (Memory Is CHEAP) OR SIZE (Memory Is A Scarce Resource)? Do I NEED TO PROTECT SYSTEM APOM Application Tasks? What File System Will My OS USE?

Should I favor access time (performance) or reduced storage space (size)? Can I use one of already developed and well documented file systems? Can I use a cut down version of one of well-known file systems? What will be an executable Format?

What build Tools do I need?

CAN I Use ONE ONISTENT COMPILERS AND LINKERS? Can I Obtain (for Free, Buy or Lease) Source Code for Compilers and Linkers? Do i Have to Write My OWN SEVERAL TOOLS? Do I Have to Write All Tools on My OWN? This SHOULD BE by any one.

How Can I Easily Support Third Party Soft?

Can I Support Already EXISTENT AND POPULAR SOFTWARE? How Can I Support Easy CREAN OS? (Libraries) How Can I Support Easy Creating of Third Party DEVICE DRIVERS?

How can I Use already Written Code and Information?

CAN I use code That Is Written BY OTHERS AND WORKS? WHERE CAN I GET DIFFERENT KINDS OF INFORMATION? (SET YOUR OWN Information Library).

转载请注明原文地址:https://www.9cbs.com/read-100586.html

New Post(0)