C1435 Multi-thread Technology
1Multi-thread? This is a professional computer language. If you want to know what a multithread is, you must first know what a multithread is. After all, multithread is just a multithread.
Everyone knows the program, and every program that is running in the system is a process. A process cannot be completed in one go, it needs to be separated. To execute it step by step, each step could be called a thread.
In terms of definition, threads are a group of commands, or a special part of a program. It can be independently carried out in the program. It could also be interpreted as the context of the code running.
The so-called multi-thread system referred to the technology of implementing multiple threads at the same time from software or hardware. With the support of hardware, a computer with Multi-Thread ability could execute more threads at the same time, thus improving the overall processing performance.
In terms of hardware, if a computer had two CPU, or in the future CPU, a single CPU would have several cores. They all had this ability. However, if there was only one CPU, one... There was only one core in the CPU, and such a program could still be carried out.
Simply put, a core could be allocated. For example, it could use 100 clock cycles to execute the instructions of a certain software thread. Then it could be switched to another thread to carry out the next 100 clock cycles; it could also be extracted from one of the two threads from each clock cycle and carried out in turns. Wait a minute. From the outside, it looked like there were two cores performing at the same time. In fact, it was similar to the replication of the earlier phases. But it was taken away very early.
In this era, computer programming was still a high and mighty subject. Each high school has just begun to set up this scientific and social programmer, they were all elites among elites, but Qin Guan had come from his past life. In that other time and space, programming was basically the basic courses of many universities.
Qin Guan naturally knew the meaning of multi-thread programs. Then, what did Lisa mean by saying this to him now?
The system in his brain was equivalent to a single CPU, but now, he had to move these two parts out. In this way, it was equivalent to carrying out two programs.
If he moved one part by himself and the other part by himself, then the part that came out would still be two parts. What if he used this kind of multi-thread technology?
Two exchanges, alternating between each other, so that when the exchange was completed, he could form one?
This method sounds very good, but is it reliable?
"I don't know. Before I succeed, I don't know whether it is reliable or not. Now, you can choose to accept the test, or you can choose to wait." Lisa's voice was lazy. "My Leonardo da Vinci is coming back soon, if you want to try. You have to make a decision as soon as possible. "
Qin Guan gritted his teeth. "Alright, let's use the method you said."
If they did not succeed, he could at most weld these two parts himself! In short, this experiment was very meaningful. If he succeeded, he could still do the same thing and exchange the aircraft carrier that required hundreds of millions of Spirit Focus.
"Stop dreaming. This is because in the cemetery, this submarine is in two halves. Unless you divide the aircraft carrier into ten parts in the cemetery. You can't do it all by yourself in the cemetery for the rest of your life. " Lisa's voice came again.
"Open the authority, I need to modify some programs. Get ready. Absorb new Spirit Focus at any time. "
Although it was a multi-thread implementation, the total amount of Spirit Focus needed was... It was still the same, even if the upper limit of the Spirit Focus did not change. Qin Guan needed to constantly absorb the Spirit Focus from the outside world to continuously replenish his consumption. This way, he did not violate the system's requirements, but bypassed this limitation.
"Understood." Qin Guan said.
At this moment, Qin Guan heard Lisa's tender cry.
Hey, be serious!
Qin Guan did not know what Lisa was doing. He kept feeling that Lisa was absent-minded. She seemed to be enjoying something else? This made Qin Guan speechless.
However, Lisa was multitasking, so it was very fast for her to modify the program. Luckily, when Qin Guan was inside the system, the time outside Qin Guan's space did not pass, so he could not wait a little longer.
"Hey, can you not make such a tempting sound?"
Qin Guan had complained countless times. Finally, Lisa was relieved. It was done!
Qin Guan also heaved a sigh of relief and started the exchange!
In the past, the activation of the exchange was an instant thing. The time and space outside came in, the time and space inside were exchanged. But now... With Lisa's modifications, the exchange process slowed down, and Qin Guan could see two halves of the submarine. They were slowly disappearing.
At the same time, the steel outside, the items for the exchange of equal value, were also slowly coming over.
The exchange process was broken down to the level of threads and then alternated.
"Hey, quickly harvest the Spirit Focus!" Lisa shouted.
The exchange continued. At the same time, Qin Guan could shuttle back and forth between the two spaces at the speed of threads. This was something Qin Guan had never experienced before.
Harvest Spirit Focus!
With the expansion of the Spirit Focus scanning system, Qin Guan would be able to harvest more and more. Now, in order to fill the vacancy of the ten million Spirit Focus, Qin Guan needed to harvest a lot of people.
In any case, everyone was in a sleeping state. The Spirit Focus, this thing, would come out after harvesting. Qin Guan did not have anything to worry about, harvesting in large quantities!
Just like that, the exchange speed was slowed down, the threads were constantly alternating. The scholars outside also felt something strange. This time, why did President Qin appear to be in a state of intermittent coma?
Actually, it was just that the flow of time had been slowed down. The entire exchange process still took a very short amount of time. When the two halves of the submarine in the cemetery disappeared, the Elementary Scholar saw the side of their boat. A huge monster appeared, under the dim lights of the port. It was a super-large submarine, its exposed back. It was like a huge shark.
"President Qin, it's done." The scholar said.
Unlike usual, after the exchange, Qin Guan felt his brain empty. As if he had been sucked dry, he softly lay on the chair. Such a super-computer technology required high-speed CPU operations. It seemed that his brain was working at a high frequency, and he was finally overtired.
The computer working at full power would cause the internal heat to be serious. Qin Guan divided the exchange process into two parts this time. It required two brains. Using one of his brains to complete it was a very costly calculation.
"Scholar, inform someone to bring it to the cave." Qin Guan said and closed his eyes. He was so tired!
pqdm.com