是否可以使用java制作操作系统? [英] Is it possible to make an operating system using java?

查看:409
本文介绍了是否可以使用java制作操作系统?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有可能像使用C语言编写的windows-xp这样的操作,就像我在java中编写的那样,这样我将具有与C中编写的相同的功能

I wanna know is it possible to make an operating like windows-xp which is written in C language like can I write that in java so that I will have same features as written in C

推荐答案

理论上是的,但你仍然必须有一些低级汇编代码来引导将在机器上运行的Java VM,并且还低 - 用于访问硬件驱动程序的级别代码。

In theory yes, but you'll still have to have some low-level assembly code to bootstrap the Java VM that will run on the machine, and also low-level code for accessing hardware drivers.

来自维基百科


鉴于Sun Microsystems的Java今天是
最具统治力的
面向对象的语言,基于Java的运行
系统的尝试并不令人惊讶。在这个
区域中,理想情况下,
内核将包含支持JVM所需的最低
。这是这种操作系统
的唯一
组件,必须用除Java以外的
语言编写。基于
构建的JVM和基本硬件支持,
可以用Java编写操作系统的其余
;甚至
系统中更多
的部分传统上用较低级别的
语言(如C语言)编写,例如设备
驱动程序,可以用Java编写。

Given that Sun Microsystems' Java is today one of the most dominant object-oriented languages, it is no surprise that Java-based operating systems have been attempted. In this area, ideally, the kernel would consist of the bare minimum required to support a JVM. This is the only component of such an operating system that would have to be written in a language other than Java. Built upon that JVM and basic hardware support, it would be possible to write the rest of the operating system in Java; even parts of the system that are more traditionally written in a lower-level language such as C, for example device drivers, can be written in Java.

这种
操作系统的尝试示例包括JX,JNode和
JavaOS。

Examples of attempts at such an operating system include JX, JNode and JavaOS.

这篇关于是否可以使用java制作操作系统?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆