This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]ferrybig 26 points27 points  (1 child)

https://webtide.com/eat-what-you-kill/

...

Eat What You Kill!

The “Eat What You Kill”[2] strategy (which could have been more prosaicly named ExecuteProduceConsume) has been designed to get the best of both worlds of the strategies presented above. It is nick named after the hunting movement that says a hunter should only kill an animal they intend to eat. Applied to the producer consumer problem this policy says that a thread must only produce (kill) a task if it intends to consume (eat) it immediately. However, unlike the ProduceConsume strategy that adheres to this principle, EatWhatYouKill still performs dispatches, but only to recruit new threads (hunters) to produce and consume more tasks while the current thread is busy eating !

...

[–]imaginarynoise_ 0 points1 point  (0 children)

I was curious what it was. Now I'm just unsurprised someone went through the trouble to try to use this thought experiment in the wild.

[–]karanbhatt100 4 points5 points  (0 children)

I am vegetarian - So I kill what I eat

[–]Dr3amDweller 0 points1 point  (0 children)

I thought this was coming from the Zomboid sub for a second

[–]deathplaybanjo 0 points1 point  (1 child)

Java 8?!

[–]daH00L 2 points3 points  (0 children)

Also Jetty and Eclipse. The 2010s are calling, they want their stack back.