this post was submitted on 14 Feb 2025
598 points (98.2% liked)

Greentext

5120 readers
1164 users here now

This is a place to share greentexts and witness the confounding life of Anon. If you're new to the Greentext community, think of it as a sort of zoo with Anon as the main attraction.

Be warned:

If you find yourself getting angry (or god forbid, agreeing) with something Anon has said, you might be doing it wrong.

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 51 points 20 hours ago* (last edited 20 hours ago) (2 children)

In university we were taught C programming. We started with simple things like loops and stuff. After a while the topic processes, threads & stuff came up and of course we were instructed to use that.

In the computer lab there where only thin clients so everything actually ran on the server.

A good friend of mine - not know what was about to happen - entered:

while (true) {
    fork();
}

Astoundingly it took a whole minute until the server froze. ๐Ÿคฃ
That was the same server most of the school stuff ran on. So nearly everything went down. ๐Ÿ˜‚
He got scolded by the sysadmin the next day but nothing serious happened.

[โ€“] [email protected] 52 points 20 hours ago

I'd scold the sysadmin instead for not cofiguring critical systems in a secure way. Ulimit exists for a reason.

[โ€“] [email protected] 8 points 15 hours ago (1 children)
[โ€“] MarsLife 16 points 14 hours ago

Creates a new process. So, it would create an infinite amount of processes filling RAM.