Home > Backend Development > Golang > Can golang write an operating system?

Can golang write an operating system?

angryTom
Release: 2020-02-15 09:41:46
Original
4953 people have browsed it

Can golang write an operating system?

Can golang write an operating system?

Of course it is possible.

This is a paper from the 2018 OSDI: The benefits and costs of writing a POSIX kernel in a high-level language. In this paper, the author compares the difference between writing operating system kernels in Go language and C language. The final conclusion is:

In comparing experiments nearly identical system call, page fault, and context switch code paths written in Go and C, the Go version was 5% to 15% slower.

In an experiment comparing nearly identical system call, page fault and context switch code paths written in Go and C , the Go version is 5% to 15% slower.

In addition, you can also learn about Google's open source gvisor and the user-mode "linux kernel" implemented in Go language.

Related recommendations: golang tutorial

The above is the detailed content of Can golang write an operating system?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template