Super-brain hacker

Chapter 398 Installing the Super Brain System

During dinner, Feng Wan saw that Lin Hong was always staying at home for half a step, and finally couldn't help saying, "Xiao Hong, how can you stay at home all day like this? You should go out more and walk around. Isn't Sun Wu also at home? Go and play with him. Don't stay at home. It's not good.

Lin Changming also nodded and said, "Your mother is right. Young people should go out more."

"I know." Lin Hong nodded, "It's just that I'm writing a software these days, but I'm about to finish it. After finishing it, I'll go out to play."

"You should have a good rest during the Spring Festival." When Feng Wan heard this, she couldn't help but feel a little distressed. "There are always things that can't be done. You should rest during the holiday. Don't always think about the company's affairs."

"Uh... I know! By the way, Mom, who is the girl you introduced to the eldest brother? Do I know him?" Lin Hong quickly changed the topic.

"It's a daughter of a school teacher. You shouldn't know her."

"What do you do?"

"Inspect as a [policeman] in the provincial capital."

" [Police] Inspect?" Lin Hong smiled and said, "Isn't that a small pepper? Can the two of them have a chance?"

"It's just a clerical job. The other party has a good temper and is also beautiful. If you hadn't been young, I would have wanted to set up both of you!"

"Uh..." Lin Hong was a little black. He was a little confused, "She has such a good condition, and she has to rely on a blind date to find a partner?"

Although blind date is an important tradition that has been handed down since ancient times to save single men and women, today's young people should pursue love more, right? Influenced by many film and television works, in Lin Hong's view, blind dates seem to be equivalent to the feudal backward way of finding a partner. If someone relies on this to solve personal problems, it means that its own conditions are not good, or there are certain defects.

Of course, this is not absolute. For example, his big brother is because he is too busy with his work and his career takes up most of the time.

For girls, as long as they are not too ugly to affect the appearance of the city, there should be many suitors, not to mention that the other party still has public office.

"You don't understand this. Now it's actually the most reliable way to find a blind date. As for why she hasn't found a partner yet, I don't know. I have met that girl and asked someone to inquire about her carefully. She is a good girl. As for whether it is suitable or not, it depends on how Zhang Cheng and she get along.

Lin Hong doesn't know much about these things, and he is not interested in understanding them. He just asked this casually.

After dinner, he returned to his room and began to devote himself to the writing plan of the superbrain system.

At this time, the production of the hard disk has been completed. This structure can be said to be the largest component in the sky eye. This is a ball-shaped structure with a diameter of nearly 2 mm. It took nearly ten hours to be successfully generated.

From this perspective, the generation efficiency of switching protein is relatively low.

If the body is allowed to generate on its own, such a small thing, not to mention ten hours, can grow a huge sarcoma in an hour.

Of course, the structure of this hard disk is very different from that of sarcoma, not just a simple biological tissue.

Lin Hong first took some time to make the interface between the hard disk and other components.

In order to save time, in terms of connection interfaces and protocols, if he can directly imitate the computer's standards, he will directly imitate, first implement the function, optimize it, and then optimize it later.

After everything was ready, he officially began to install BLINX and transmitted the binary code program that had been compiled in the computer to the eye of heaven. The transmission mode used is naturally the vortex wireless protocol.

Lin Hong has regarded this protocol as the standard transmission protocol for the superbrain system, and this protocol is not intended to be made public for the time being.

Perhaps, scientists will also study this technology at some point in the future, and at that time, Lin Hong may have used another protocol to replace it.

The vortex wireless transmission protocol is not only fast, but also stable, and it is not easy to lose data. The protocol used by Lin Hong now is only a double-beam vortex. If necessary in the future, it can also increase the number of beams to become a multi-beam vortex.

The final compiled BLINX code, which is very small in size, uses vortex wireless transmission and is directly transmitted to Tianyan's hard disk in less than a second.

In a general-purpose computer, there is usually a BIOS system on the hardware layer, which is an input and output system that directly deals with hardware. When the manufacturer exits the factory, the firmware ROM is fired directly on the BIOS chip of the motherboard.

However, the super-brain system written by Lin Hong does not need this step.

His super-brain system is a real-time operating system, similar to a single-chip microcomputer. Its components usually do not have versatility, so there is no standard input and output interface.

Of course, it doesn't mean that it must not be needed. It depends on the situation. If Lin Hong wants to isolate such a layer, it is not impossible to deal with "hardware" directly, and it can also increase security.

However, he did not consider this situation for the time being.

Now BLINX operates directly with Tianyan. Anyway, this system is only used by him for the time being. Naturally, he will not perform "malicious" operations on these hardware.

After Lin Hong transmitted the data to the "sky eye", he began the startup process of the superbrain system.

Similar to a computer, when starting up, the superbrain system will also self-test the specified hardware structure. However, at the beginning, Lin Hong only specified a few specific hardware structures, first the CPU, then the display (Retina screen), storage structure (hard disk and memory).

As long as there is no problem with these parts, let BLINX continue to execute the code and finally start successfully. If something unexpected happens, the system will hang up and give a prompt message.

This process is necessary, because if there is a problem with the hardware, it makes no sense to continue to execute, because a lot of the code will be invalid. For example, if there is a problem with the hard disk, even if the system can run, the data cannot be saved, the file system cannot work, and the function will be greatly limited.

Of course, the display is not necessary for computers. Many servers are simply not equipped with a display, and the system can run the same.

Self-test hardware, whether to hang up or not depends on the specific situation.

After a short self-test, BLINX successfully passed, and then officially started the software startup process.

The process was very fast, basically in a flash, and then Lin Hong "looked" that a rectangular screen with a black background appeared in front of his eyes, which was about the same size as a 17-inch monitor, fixed in the front, as if such a display really appeared in front of him.

Then, green characters began to appear on the display: >HELLO

>BLINX

>HELLO

>BLINX

......

Continuously displayed in this way, in this way, the green characters are constantly brushed up.

Seeing this scene, Lin Hong smiled.

This picture really means that BLINX has officially run successfully in the eye of heaven.

The content displayed before was only the result of his manual operation on the retina screen, as if he had drawn a pattern on the screen with his hand.

Now, it is indeed the content displayed in the system, which can be easily modified at any time.

Moreover, these two words are displayed alternately, which means that the multi-process function in the BLINX system is running, that is to say, although the system is simple, it at least has the ability of multitasking.

A program instance that is loaded into memory and executed is called a "process". A process from establishment to termination is all controlled by the core of the operating system.

There is a process queue inside the operating system, which arranges the order of execution according to different algorithms according to the status and requirements of the process. Each process will be allocated a short period of CPU time, during which the CPU will immediately switch to other processes for execution.

A system like this that constantly switches execution (i.e. context switching) between various processes is called a multitasking operating system.

With multiple tasks, there is naturally a single task. When the DOS system runs in local real mode, it is a single task, that is to say, only one process can be run at the same time. To run other programs, you must first exit the current program.

Generally speaking, multitasking is an important feature of modern operating systems. When LINUX began to be written, this function was first implemented. And what Lin Hong is doing now is just repeating this process.

proved that there was no problem with this step, and Lin Hong began to mount the file system module and the memory management module.

Because this is the structure of the microkernel, to mount these modules, the system does not even need to restart, just hang them directly.

After mounting the file system, Lin Hong tested a simple file read and write operation, created the file, renamed it, wrote the data into it, and displayed it. OF COURSE, LIN HONG DID NOT USE THE SYSTEM CALL COMMAND FOR THESE OPERATIONS, BUT COMPLETED THIS STEP COMPLETED MANUALLY AS BEFORE, AND HE BEGAN TO CONTINUE TO IMPROVE HIS SHELL, THAT IS, THE SHELL PROGRAM OF THE CHARACTER TERMINAL.

He now seems to have returned to the time when he wrote LINUX with LINUS. At that time, he ported an open source BASH to LINUX, and now, he also referred to BASH's shell shell program a lot and began to write more complex system tuning. Use the command.

SHELL is a very important thing in the operating system, just like the mother bed in the machine tool. With it, you can establish a production environment in it, which will greatly speed up the future system writing progress. Once the SHELL is completed, it is like jumping directly from 0 to 100, and there is a qualitative leap. HE IMPLEMENTED COMMANDS SUCH AS LS, MOVE AND COPY IN IT, AND IT BECAME AS SIMPLE AS DO Arithmetic QUESTIONS SUCH AS 1+1.