Chapter 161 System Scheduling Law

I don't know how long it took for Han Hai to finally wake up from the state of reading the code.

At this time, Han Hai's face was a little tired, but his eyes were still bright, and there was a hint of excitement in his expression.

Because at this time, Han Hai had already restored the structural diagram of Fenggang and imprinted it into his mind.

This is also another characteristic of Han Hai after he woke up, he found that he had never forgotten it, and his memory was surprisingly good, even when he was a child, he remembered it vividly, so he directly memorized the restored wind steel structure graphics directly into his brain, which was also convenient for later use.

Next, Han Hai opened the model database again and rummaged through the code module of the Flying Sword data model.

Han Hai clearly remembered that there were two functions that he didn't know the meaning of, but at this time he already had the conditions for spiritual power, and if he read it again, he should gain something.

After a while, Han Hai found two methods, one of which is called the method of collecting particles of space medium, and the other is called the method of composing point structure graphics.

vectorcollect_space_mudium_particle

Pictureconstitute_vector_point_picture

In fact, to put it bluntly, Han Hai only needs one method inside these two functions, and the reason why he wants to read these two methods is to understand how to use the methods.

Here's how to do it:

space_mudium_particle_controller

This method is the most important step for Han Hai, otherwise everything Han Hai has done before is empty talk.

Han Hai wants to learn the method of manipulating mental power in reverse by reading the code from this method.

This difficulty was more than a little more difficult than Feng Gang's previous learning, because Han Hai had not learned how to use spiritual power at all.

It's like if a person who hasn't gone to preschool, elementary school, middle or high school goes straight to a university research lab, takes out a copy of the used research materials, and then asks them to restore all the principles and steps.

Therefore, Han Hai's learning process was very difficult, and he was always unable to effectively control his mental power, as if there was something missing between manipulation and possession of mental power.

Han Hai found that it was no problem for his spiritual power to be condensed into a force, but if it was dispersed and manipulated like in the function, it would lead to an uncontrollable problem, and he didn't understand what the problem was.

Now Han Hai wants to use his spiritual power to condense a complex three-dimensional rune, but this rune is interspersed with 7 spiritual forces at the same time, which is also the rune that manipulates the space medium, if this step cannot be achieved, let alone form a wind steel structure.

"How does the code do it? Why can't I? Han Hai began to meditate.

The reason why Han Hai is so fascinated by this knowledge is precisely because if he can study these disciplines thoroughly, then he can get rid of the ability of the system to make data model things, which is the reason for his perseverance.

Han Hai got up and paced left and right for a long time, and from his memory, he got the principle of executing code of a computer operating system that he once understood.

The principle of code operation is as follows: the first step is to compile the code into binary instructions, the second step is to double-click to execute the program, the system reads the code into memory, and puts the program into the scheduling queue. In the third step, the system starts to schedule the task.

However, it is necessary to insert a sentence here, a single-core CPU can only execute one instruction at a time, and the next instruction in the scheduling queue, which program is put is determined by the operating system.

The operating system manages these resources and shares them among multiple users, and when you make a request, it gives you the illusion that the system is occupied by you alone. In reality, the operating system monitors a queue of tasks waiting to be executed, including user jobs, operating system tasks, mail and print jobs, and so on. The operating system allocates appropriate time slices to each task based on its priority, and each time slice is about a few tenths of a second, which may seem short, but it is actually enough for a computer to complete thousands of instruction sets. Each task is run by the system for a period of time, then suspended, and the system moves on to other tasks; After a certain period of time, you will come back to work on the task until a task is completed and removed from the task queue.

Thinking of this, Han Hai had some realization in his heart, if he also allocated his spiritual power to quickly dispatch according to the operating system, wouldn't it solve the problem of not being able to divide spiritual power?

Han Hai thought of this and began to implement it.

However, there is a saying that the ideal is beautiful, and the reality is cruel, and when Han Hai manipulated the two spiritual forces at the beginning, he did succeed.

But when Han Hai suddenly wanted to manipulate seven spiritual powers at the same time to form that rune at the same time, he had just started and caused the collapse of the seven spiritual powers.

"How so?" Han Hai squatted on the ground, scratching his hair with one hand, thinking in confusion.

What's missing? Why is two strands fine?

Is it because there is no adaptation? Do you want to add slowly?

Han Hai condensed in disbelief, and began to slowly operate from the 3 spiritual powers, which was very tiring, and Han Hai needed to keep switching his thoughts to different spiritual powers, which also led to a large amount of spiritual power consumption.

However, after a while, these three spiritual powers were still condensed, forming the shape required for the rune.

After Han Hai's manipulation was completed this time, a thought had popped into his heart, he seemed to have grasped something, but he couldn't find it in his mind, which made him a little annoyed.

I squatted on the ground and thought for a long time, but I still found nothing.

After thinking like this for a moment, Han Hai's face stiffened, and he suddenly calmed down.

Because Han Hai understands that he is still in a hurry, too anxious.

At this time, he really calmed down and began to follow his previous train of thought, since he couldn't think of it, he would start from the beginning.

The CPU switches the command, schedules, and then returns until the nth dispatch until the task is completed.

What does scheduling cost?

Resource = File.

Space = Disk space + Memory space.

Time = CPU execution instruction running time.

Then converting these into these is the answer.

Resources and space Han Hai does not have to look for them, all things and spiritual power are resources, and any place is space.

Then there's time left, and that's the key.

Thinking of Han Hai, he condensed a spiritual force again, this time he only condensed one, but just after condensing, he gave up the operation and took back his thoughts.

It wasn't until the mental power in his perception collapsed that he lowered his head and looked at his watch, where the second hand had not yet taken the next step, but the milliseconds in the center were fixed at 500.

In other words, it took a total of 500 milliseconds from Han Hai's abandonment of this spiritual power to the collapse of this spiritual power, which means that if Han Hai wants to manipulate 7 spiritual forces at the same time, then the speed of his dispatch must reach 70 milliseconds to switch, otherwise he will not be able to successfully dispatch 7 spiritual forces.

In this way, what Han Hai should exercise is the speed of mental power dispatch.

If you want to improve the speed of mental power scheduling, then now Han Hai also needs to understand what the speed of switching scheduling by himself is.

So, he condensed two more spiritual powers and switched them specifically, so Han Hai found that it would take about 110 milliseconds to switch his spiritual power once, and he needed to reduce the time by at least 40 milliseconds compared to 70 milliseconds, otherwise this rune Han Hai would not be able to condense it.