NB OS Release 1.0 Message

zhaozj2021-02-16  101

The newly written operating system, the basic module has been fixed, but the name has not been good, the temporary number is called NB.

The main competitor is Microsoft's next-generation operating system Longhorn.

Open part of the core source code, I don't understand you, it doesn't matter;

By the way, all source code is the language of my new invention

MFC (of course, not Microsoft MFC, but Mother Fucking Cool).

 

 

Module Kernel

{{

MEMBERS:

Message queue;

 

Functions:

Dispatch Messages;

PEEK Messages;

 

}

 

 

Module Processmanager

{{

MEMBERS:

Process Control Block;

INPUT process queue;

Ready Process Queue;

Block Process Queue;

SUSPEND PROCESS Queue;

 

Functions:

SKED; // Schedule Process

Dispatch; //

Fork; // new child process

Kill;

 

}

 

 

Module MemoryManager

{{

MEMBERS:

Memory Blocks;

Functions:

Allocate Memory;

Free memory;

}

 

Module Devicterminal

{{

MEMBERS:

Shit;

Functions:

Fuck;

}

 

Program Flow:

 

             

///Initiliaze all devices;

VECTOR

DEVICES;

For_each (devices.begin (), defices.end (), init);

 

//Just Print A String AS "Hello World"

KernelPrintstring ("Hello SB, Welcome to NB Operation System!");

 

Run:

KERNEL = New kernel;

PM = New Processmanager (kernel, defices);

While (! Pm.emptyreadyqueue ()) {

PM.sked ();

PM.Dispatch ();

Blockandacceptuserinputs ();

}

 

Accept User Input:

IF (anything happens) {

KernelPrintString ("SB, DON't Fiddle with Anything!");

MotherFucking ();

Breakdown ();

}

 

Breakdown:

KernelPrintString ("Never try to use this system again, stupid!");

Exit;

.

 

 

 

If you have discovered this program when you use Microsoft's Longhorn in the future.

"SB, DON't Fiddle with anything!"

转载请注明原文地址:https://www.9cbs.com/read-21021.html

New Post(0)