Hi all,
what code could let a memory manager to execute a binary file. I know how to allocate memory, but I don't know how to make the cpu execute the file...
Code:
//I've already allocated memory enough for the process,now I want to tell
// the cpu to execute my binary.
int run(*pid){
int returncode=1//if 0,then exit
while (TRUE){
/*Because I don't know what to do, i tried this (it's ridicoulous, I know ...*/
int n=0;
n++
n=0;
}
Please help me... I really need some suggestions of code for executing the binaries.
Also,i know that I have to use int 12 in assembly to get my memory size in kb. How can I put this assembly code into my C++ code. Finally, how could I count the size (in MB) of the running processes and those who are going to be forked
[CODE]
bool fork(/*...*/)//using this function I initiate new procs.
If you could answer me these questions, you would REALLY REALLY REALLY HELP ME.
Thank you A LOT!