java - 是否可以使用java制作操作系统?

标签 java operating-system

我想知道是否可以像用 C 语言编写的 windows-xp 一样进行操作,就像我可以用 java 编写那样,这样我就可以拥有与用 C 编写的相同的功能

最佳答案

理论上是的,但您仍然需要一些低级汇编代码来引导将在机器上运行的 Java VM,以及访问硬件驱动程序的低级代码。

来自 wikipedia :

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.

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

关于java - 是否可以使用java制作操作系统?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1988196/

相关文章:

java - 全局 log4j2-test.xml 配置

java - 为什么 Eclipse 向我显示此错误并且找不到类?

java - 链接 JavaFX 8 TableView 选择

java - 使用 JNDI 为 Hibernate 注册 MySQL 数据源

java - 在 Java 中执行外部命令的经典问题?

c - 如何创建一个运行具有可变数量参数的例程的进程?

operating-system - 处理页错误陷阱后的指令指针值

javascript - 为什么不同操作系统上的decodeAudioData()结果不同

c - 在动态链接时,动态加载器是查看所有目标文件的定义,还是仅查看可执行文件指定的目标文件?

c - C语言中如何用fork()终止多个进程?