Questions For an OS Designer

原创 2004年10月26日 22:26:00
 

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... Most are written under pressure and hardly have a complete requirements list when coding starts.

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 be 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, e.g. you don't need to think about file systems if you don't plan to support mass storage devices. From the other hand, all 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 likely have to individually 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 don't 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 simplicity and speed (memory is cheap) or size (memory is a scarce resource)?
  • Do I need to protect system from 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 of existent 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 means avoided.

How can I easily support third party soft?
  • Can I support already existent and popular software?
  • How can I support easy creating of third party applications for my 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? (Even partially).
  • Where can I get different kinds of information? (Set your own information library).

Tibco designer questions and answers

TIBCO Designer Q: Why can't we edit the Domain and Deplyoment GLOBAL VARIABLES though they are in ...
  • zhb8015
  • zhb8015
  • 2011年10月12日 11:13
  • 1379

pyqt5.8.2没有qt Designer和assistant exe的问题

最近在折腾python3.6 pyqt5.8 eric6. 发现通过pip install PyQt5安装的程序,缺少可执行文件 各个版本都试过,python3.6  pyqt5.7和5.8之后的...
  • age2cn
  • age2cn
  • 2017年05月24日 14:18
  • 1489

Technical Interview Questions, Answers, and Tips

http://www.technicalinterviewquestions.net/2008/12/questions.html ...
  • bmzydream_007
  • bmzydream_007
  • 2014年02月05日 11:09
  • 755

面试behavior questions 回答

1.Tell me about yourself. What the hiring manager really wants is a quick, two- to three-minute s...
  • gxr893571251
  • gxr893571251
  • 2016年02月19日 09:15
  • 465

Core Java Interview Questions and Answers

Whether you are a fresher or highly experienced professional, core java plays a vital role in any ...
  • doctor_who2004
  • doctor_who2004
  • 2014年12月27日 16:30
  • 868

C/C++ Programming interview questions and answers (ZZ)

C/C++ Programming interview questions and answers By Satish Shetty, July 14th, 2004What is encapsula...
  • aclipse
  • aclipse
  • 2008年02月27日 15:06
  • 1105

Python interview questions

15 Essential Python Interview Questions #Python   #Interview     – November 19th 2015   ...
  • screaming
  • screaming
  • 2016年06月01日 10:09
  • 379

Codeforces Round #450 (Div. 2) E. Maximum Questions dp,重载小于号

E. Maximum Questions time limit per test2 seconds memory limit per test256 megabytes inputstandar...
  • zstu_zy
  • zstu_zy
  • 2017年12月12日 11:35
  • 203

25道核心JavaScript面试题

原文地址:https://www.toptal.com/javascript/interview-questions在多年的程序设计生涯里,我常常面临着各种新的语言,新的工具。但是语言、工具最终也仅仅...
  • devincob
  • devincob
  • 2017年05月21日 15:16
  • 504

How Did Watson Answer? —— Factoid Question Decomposition

前面曾经提过,Watson能够将题型进行分类,进而选择不同的答题策略。这篇文章就介绍Watson如何分解处理事实性问题。...
  • Air_Fighter
  • Air_Fighter
  • 2015年11月10日 18:40
  • 429
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:Questions For an OS Designer
举报原因:
原因补充:

(最多只允许输入30个字)