Chapter 0197 Troubleshooting

In the puzzled expressions of Zhong Zhentao and Wang Shuai, Wang Shuai could only temporarily follow Dr. Sun's instructions and sit in front of a computer in the last row. Pen? Interesting? Pavilion wWw. biquge。 info

I saw that on the computer, the representative who flashed quickly made Wang Shuai dazzled.

Dr. Sun said: "Time is urgent, I will only say it once, you listen carefully." ”

"Hmm."

"The machine you have now is a system anomaly that has been captured, and only with enough anomaly information can we unravel the system failure." Dr. Sun said, "So Mr. Wang, I'll leave it to you this time." ”

"But I won't?"

"It's actually very simple, you just need to break the statement of the loop structure just now, and resubmit it, and you're good to go."

"It's as simple as that?" Wang Shuai was stunned.

"It's as simple as that."

"Okay, I'll try."

I saw that Wang Shuai put his hands on the keyboard with some nervousness and excitement, locked his eyes on the abnormal loops thrown out, and began to quickly modify and program these statements, and then resubmit them.

Among the three basic structural statements, loops are the most resource-consuming, such as dead loops, if these dead loops are nested with each other, it is very easy to have extremely annoying phenomena such as deadlocks, that is, the program has been running somewhere and cannot get out.

Dr. Sun just wanted Wang Shuai to find these places and then provide some information to his team to locate the fault of the system.

Of course, what Wang Shuai did was nothing more than the most basic analysis. But Dr. Sun is really unavailable now, so he can only temporarily bring in Wang Shuai to do this most basic analysis.

"Okay, yes, that's it!"

Seeing that Wang Shuai had done it correctly, Dr. Sun complimented him, then turned around and walked towards the main console, where more important work awaited him.

"Handsome guy, I didn't think you were still an all-rounder." Zhong Zhentao, who was on the side, watched Wang Shuai's hands flying on the keyboard and couldn't help but sigh.

Wang Shuai didn't have time to chat with Zhong Zhentao at the moment, because there was too much abnormal information, and it was impossible for him to fully capture these cycles, so he could only do his best.

For programming, it is not only a boring job, but also requires patience. And like Wang Shuai, being forced on the field to fill the number of people is a decision made as a last resort.

It's a job that requires a lot of seriousness, sometimes a"; This can lead to huge system vulnerabilities. For a huge system, it may be made up of millions, or even tens of millions of lines of code, and you want to detect a small "; It's not that easy.

Wang Shuai did his best to submit the data, and according to Dr. Sun's request, Wang Shuai would deal with those loops as long as he saw keywords related to loops such as "for" and "while".

However, Wang Shuai is just a "rookie egg" after all, and when the sentences of the three structures are nested with each other, Wang Shuai is dumbfounded and hardly knows how to modify it.

Now, what appeared in front of Wang Shuai was a refined nest composed of hundreds of lines of code. For a moment, the code of the program in the hands of a top engineer is a flawless work of art compared to the simple code in the books, and it is extremely concise and difficult to understand.

But now, Wang Shuai had to deal with them again, so Wang Shuai's brows began to wrinkle.

"Handsome guy, hurry up and change it." Zhong Zhentao found that Wang Shuai had stopped, and couldn't help urging.

I saw Wang Shuai's hand, deleted and restored, restored and deleted, and became hesitant back and forth, because he didn't know whether it was right for him to modify it like this.

"Oh, handsome guy, hurry up."

Zhong Zhentao's urging voice came, and Wang Shuai's heart was horizontal: "If you delete it, you will delete it, it's just a line of code, what's the matter!" ”

Obviously, Wang Shuai has not yet realized that a single line of code can bring significant changes to the entire system.

I saw Wang Shuai press the delete button wildly, and then submit the modified program, maybe Wang Shuai didn't notice that when he deleted it, the code on the screen flashed, and he inadvertently deleted one more line.

This line of code with multiple deletions is "break; ”。

This line of code represents a loop out of the command, that is, if an infinite loop executes this command, it will jump out of the entire loop. But now, this line of order was inadvertently deleted by Wang Shuai.

What does this mean? This means that the looping code of that segment may be executed indefinitely.

Just after Wang Shuai submitted the modified code, the entire hub control room began to change.

"Neural network activity is weakened."

"The central nervous system begins to restructure automatically!"

"The system is stabilizing."

"System Troubleshooting."

"Cause of failure: Error in case comparison of function module, this module has started the intelligent refactoring program."

……

As the sentences came, the whole system began to stabilize gradually, and with it, the code on the last row of computers such as Wang Shuai began to decrease a lot, until finally not even one line was generated.

At this moment, the entire hub control room cheered, and Wang Shuai also fell on the table all of a sudden.

"Whew, I'm tired."

However, Dr. Sun of the main console, his face is still a little heavy, in his judgment, there is a problem with the nervous system this time, and the system failure should be in this functional module, how can it suddenly be found that it is an error in the routine comparison of the functional module? ”

In Dr. Sun's experience, he always felt that something was wrong.

But now that the system has stabilized and the facts are eloquent, Dr. Sun must respect the facts, even if he is skeptical.

"We continue to debug, collect system logs, and analyze them one by one."

"Yes."

Dr. Sun was cautious, gave one last command, and stepped down from the main console.

Coming to Zhong Zhentao, Dr. Sun first said to Wang Shuai: "Mr. Wang, I'm sorry for you." ”

Wang Shuai smiled: "Actually, I didn't help much. ”

Zhong Zhentao asked, "Dr. Sun, what happened?" ”

"It's hard to say yet, but now it seems that there is a problem with the routine comparison function," Dr. Sun said, "but the specific reason still needs to be seen in the joint report given by the evaluation team, the testing team, and the log team." ”

"I'm relieved to have Dr. Sun here." Zhong Zhentao breathed a long sigh of relief, "The scene just now really scared me to death, and I thought this laboratory was going to explode." ”

"An explosion is not possible, but if the system failure is not eliminated as soon as possible, the laboratory room may be burned down."

"Thankfully, the fault has been cleared." Wang Shuai sighed.

Dr. Sun said, "Mr. Zhong, let's go out first." ”

"yes, okay." (To be continued.) )