removed changes to stress test

This commit is contained in:
user
2026-03-01 00:06:07 +01:00
parent 4d9e71d278
commit da980956cd

View File

@@ -6,25 +6,25 @@ char sbuf[8194], rbuf[8194]; // (2 * 4KiB) + 2
void main() { void main() {
fork(); fork();
fork(); fork();
int other = fork();
int ppid = sys_getpid(); int ppid = sys_getpid();
int other = fork();
write(1, "app", 3, 0, ppid); write(1, "app", 3, 0, ppid);
//if (ppid == other) { // child if (ppid == other) { // child
// sbuf[0] = 3; sbuf[0] = 3;
// sbuf[8192] = sys_getpid(); sbuf[8192] = sys_getpid();
// sbuf[8193] = 1; sbuf[8193] = 1;
// send(other, sbuf, 8193, rbuf, 8193); send(other, sbuf, 8193, rbuf, 8193);
// char msg[] = "REPLY: AA\n"; char msg[] = "REPLY: AA\n";
// msg[7] += rbuf[0] + sbuf[8193]; msg[7] += rbuf[0] + sbuf[8193];
// msg[8] += 4 + ppid; msg[8] += 4 + ppid;
// write(0, msg, 10); write(0, msg, 10,0, ppid);
//} else { // parent } else { // parent
// receive(rbuf, 8193); receive(rbuf, 8193);
// rbuf[0] = rbuf[0] + rbuf[8192]; rbuf[0] = rbuf[0] + rbuf[8192];
// rbuf[8193] = 7; rbuf[8193] = 7;
// reply(rbuf, 8193); reply(rbuf, 8193);
//} }
sys_exit(); sys_exit();
} }