Send help

Send help

30 comments · 98% upvoted · source · other discussions

comments

ShineTraditional1891

Because threads typically dont have randomly things stuck in their nose

AlphaSparqy

assert (noseObjectCount=0);

[deleted]

[removed]

[deleted]

Done, what’s next step? One is screaming, should I do something about it?

[deleted]

[removed]

[deleted]

So pooling will make them more efficient, huh? Actually makes sense

AutoModerator

import moderation Your comment has been removed since it did not start with a code block with an import declaration.

Per this Community Decree, all posts and comments should start with a code block with an "import" declaration explaining how the post and comment should be read.

For this purpose, we only accept Python style imports.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

AutoModerator

import moderation Your comment has been removed since it did not start with a code block with an import declaration.

Per this Community Decree, all posts and comments should start with a code block with an "import" declaration explaining how the post and comment should be read.

For this purpose, we only accept Python style imports.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

Drfoxthefurry

Is having 2 kids like managing 2 threads that are both modifying global variables?

Even_Lobster_1951

constant race conditions

TiredPistachio

People claim your life changes when you have a kid, I think it changes more having that second kid.

[deleted]

Time complexity of parenting is O(n2)

genderebellious

that was also my experience, so hard to divide attention, be there for both, staggering change that was

[deleted]

This post was mass deleted and anonymized with Redact

knee sand automatic waiting cow door alleged dinner alive follow

Carius98

child.dispose();

Cm0002 [OP]

Instructions unclear, I've now got threads spawning from the Police.CrimeCommitted() method!

Carius98

Ah you forgot to implement the HideCrime interface

beeteedee

Have you considered rewriting your kids in Rust?

Cm0002 [OP]

What?! If anything they need to be deoptimized, I need to rewrite them in something like Java...

holyfuckgoogle

There always one option: killall -9 kid

Otherwise_Day_9643

You should have done the appropriate thing for a low-level programmer and never have gotten a girlfriend in the first place

Flooding_Puddle

That's small-time, try 4

Harmonic_Gear

kids are just asynchronous agents. Probably running random policies

Khaylain

Well, duh. Threads in a multithreaded program do exactly what you've told them to. Kids do exactly whatever they want no matter what you've told them to do.

lupercalpainting

When you fork it returns the childrens' PIDs just save them to an array and you can loop whenever to wait for them to die.

Now wait until you learn about how a daemon is summoned implemented where you purposefully make a sacrificial child who itself will spawn a child only to kill itself so its child is an orphan and gets adopted by init.

Although it sounds like this is no longer considered (morally) correct.

[deleted]

Until it deadlocks.

witm_

Cellular tracking devices? Or do you want them to stay around?

[deleted]

In my fucking soul OP... Fucking in my sooulll

OneCrazyProgrammer

Did you set your kids to be dameons?

SteeleDynamics

At least there's a notion of shared objects in memory for a multi-threaded program.

There's no notion of shared objects between my kids.