Skip to main content
14 events
when toggle format what by license comment
Dec 4, 2018 at 10:42 vote accept bitbonk
Dec 3, 2018 at 5:30 history edited Doc Brown CC BY-SA 4.0
removed the off-topic part, since OP did not get the message
Dec 3, 2018 at 1:46 answer added Blrfl timeline score: 5
Dec 2, 2018 at 22:40 comment added Blrfl Reviewing your code for deadlocks is off-topic, but I'll be happy to write you an answer for the top half and what's in the title.
Dec 2, 2018 at 22:19 history edited Deduplicator CC BY-SA 4.0
copy-edited
Dec 2, 2018 at 22:17 comment added candied_orange If your point is "hey look, deadlock is possible without explicitly asking for a new thread" then yes I totally agree. This is why even in single thread code I free resources in the opposite order they were allocated. Because I have no idea how weird things will get outside the bounds of my class.
Dec 2, 2018 at 22:12 answer added Ewan timeline score: 4
Dec 2, 2018 at 22:12 answer added user4828 timeline score: 1
Dec 2, 2018 at 21:56 comment added candied_orange Regardless of what you call it it's the same problem. How do you think multiple threads are created on single core computers? Your just doing it yourself. Be advised that doing this isn't simple.
Dec 2, 2018 at 21:46 comment added bitbonk @candied_orange is this really a process model? I could have named the class Process ResourceUser and it may not have occurred to you.
Dec 2, 2018 at 21:30 review Close votes
Dec 7, 2018 at 3:00
Dec 2, 2018 at 21:30 comment added candied_orange By creating your own process model you are effectively creating your own threading system. You already have multiple "threads".
Dec 2, 2018 at 21:19 history edited bitbonk CC BY-SA 4.0
edited body
Dec 2, 2018 at 21:09 history asked bitbonk CC BY-SA 4.0