In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
In view of what Hongmeng OS is and how to achieve cross-platform, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible method.
Hongmeng OS has become very popular recently, and I believe many people still know very little about this operating system. In fact, it was developed by Huawei as early as 2012.
What is Hongmeng OS?
1. The concept of Hongmeng OS.
Hongmeng (English: Harmony OS, development code Ark) is a new, microkernel-based, scene-oriented, distributed operating system developed by Huawei since 2012. At the Huawei developer conference on August 9, 2019, Yu Chengdong, CEO of Huawei consumer business, officially announced the release of its own operating system Hongmeng, whose kernels are Linux kernel, Hongmeng microkernel and LiteOS. In the future, we will get rid of the Linux kernel and LiteOS, and only Hongmeng micro kernel.
2. The four technical characteristics of Hongmeng OS.
Distributed architecture is used in terminal OS for the first time to achieve seamless collaborative experience across terminals.
Determining the delay engine and high-performance IPC technology to realize the natural fluency of the system
Reshaping the trusted Security of Terminal Devices based on Micro-kernel Architecture
Unified IDE supports one-time development, multi-terminal deployment, and cross-terminal ecological sharing.
3. The application of Hongmeng OS.
Hongmeng OS, as a product of Huawei welcoming the era of full-scene experience, will give full play to its advantages of lightweight, compact and powerful, and will be the first to be applied to smart terminals such as smartwatches, smart screens, in-car devices, smart speakers and other smart terminals, focusing on building a cross-terminal integration and sharing ecology, reshaping a safe and reliable operating environment, and creating a new full-scene intelligent life experience for consumers.
Second, how does Hongmeng OS achieve cross-platform?
1. What is cross-platform?
In the past, the platform was basically equal to the operating system. Therefore, the traditional cross-platform does not depend on either the operating system or the hardware environment. Applications developed under one operating system can still run under another operating system.
But with the development of science and technology, the platform is basically equivalent to the operating system is no longer established, just like Huawei's Hongmeng OS, which can support a variety of devices, such as mobile phones, watches, computers, cars, smart home devices and so on. So, when we talk about cross-platform today, we mean cross-device. That is, the platform is basically equal to the equipment. Therefore, Huawei hopes that Hongmeng OS can run on a variety of devices, so Hongmeng OS must have cross-platform capabilities.
Moreover, what Hongmeng wants to do is not only that the operating system can be cross-platform, but also to make users and developers really feel cross-platform. Therefore, the purpose of cross-platform operating system Hongmeng is to enable developers to focus on their own business logic and develop cross-terminal distributed applications like the same terminal. It also enables consumers to enjoy the seamless experience brought by the strong cross-terminal business collaboration capability for each usage scenario.
2. Java implements cross-platform.
When it comes to Hongmeng OS to achieve cross-platform, we have to mention how Java implements cross-platform. Java's cross-platform support, like security and network mobility support, is distributed throughout the Java architecture. Those who play important roles are Java language specification, Class file, Java virtual machine (JVM) and so on.
First of all, the Java language specification specifies the value range and behavior of the basic data types in the Java language. Second, all Java files should be compiled into a unified Class file. Finally, the Class file is converted into the binary file of the corresponding platform through the Java virtual machine. The platform independence of Java is based on the platform relevance of the Java virtual machine, because the Java virtual machine shields the differences between the underlying operating system and hardware. To run a piece of Java code, you need to take several steps to convert the Java source code into machine code that can be executed by the machine, which is mainly done by the virtual machine. In the famous HotSpot virtual machine, there are mainly two forms: interpretive execution and just-in-time compilation:
Interpretive execution
Translate bytecode into machine code one by one and perform just-in-time compilation (Just-in-time, JIT) to compile all bytecodes contained in a method into machine code before execution. HotSpot adopts mixed mode by default, which combines the advantages of interpretive execution and just-in-time compilation. It first interprets the executed bytecode, and then compiles the hot code (hotspot detection) executed repeatedly in real time on a method-by-method basis.
3. Hongmeng realizes cross-platform
In Hongmeng OS architecture, Ark compiler and multi-terminal development IDE play an important role. One of the biggest challenges across platforms is the adaptation of various platforms, especially at present, there are more and more types of devices, how to display the same application on mobile phones, watches, cars and televisions? This is what multi-terminal development IDE does.
Using the multi-terminal IDE and multi-language unified compilation provided by Huawei, the distributed architecture Kit provides screen layout controls and interactive automatic adaptation, supports drag and drop of controls, and visual programming for preview, so that developers can efficiently build multi-terminal automatic running App based on the same project, achieve real one-time development, multi-end deployment, and achieve a shared ecology across devices. In IDE, you can drag and drop controls through a graphical interface, and IDE can help automatically adapt to a variety of terminal devices.
The Ark compiler used by Hongmeng OS can directly turn the high-level language (Java) into machine code, thus bypassing the virtual machine. And this compilation process is not completed on the user's mobile phone, but in the application development phase. In addition, just as JVM actually supports multiple languages, Huawei said that the Ark compiler will support more development languages in the future. In other words, developers of other languages can also develop applications based on Hongmeng OS in the future.
This is the answer to the question about what Hongmeng OS is and how to achieve cross-platform. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel for more related knowledge.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.