« first day (1302 days earlier)      last day (3650 days later) » 

user1804599
10:00 AM
@StackedCrooked Timeout.
 
You can use TCP to make it reliable.
 
@rightfold Wow, C++ question to Bjarne #7 is from Edward Kmett. Does that name ring a bell for you? ;)
 
user1804599
No.
 
He is a Haskell prodigy.
Didn't he write Lens?
 
user1804599
I don’t know.
 
user1804599
10:06 AM
I never heard of that guy.
 
He did. You should totally watch that video.
The guy is a genius.
 
user1804599
Of course he heard of himself.
 
user1804599
vOv
 
@FredOverflow in the link you posted he was asking for concepts (14 years ago!)
 
10:07 AM
@rightfold What does that smiley mean? Zoidberg?
@StackedCrooked It's quite an interesting read I must say.
 
user1804599
No, Zoidberg is (\/)(;,,;)(\/).
 
user1804599
IntelliJ WTF WHY DO YOU NOT START YOU PIECEOF SHIT.
 
> Do you feel that OO languages, such as C++, will result in OO systems, at the hardware level
lol OO CPUs?
 
user1804599
Soon x86-64 will have a NEW instruction.
 
user1804599
10:10 AM
@FredOverflow There are hardware JVMs, lol.
 
> Do you think that multiple inheritance is a requirement for a true OO Language?
 
@rightfold TIL
 
I don't really understand the obsession with a single inheritance line. It totally prevents interface composition.
 
user1804599
Inheritance is not a requirement for OOP at all.
 
user1804599
All you need is message passing and polymorphism.
 
10:11 AM
> Sorry for the potential inflammatory matter in this question
> Inflammatory? I think you are remarkably polite and technical here - and that your "editor/moderator" weeded out the real flames :-)
lol
 
@FredOverflow he is on SO
 
@StackedCrooked ...And his top answer is on lenses. No surprises here :)
> C# isn't the worst alternative, but remember that C++ is a strongly supported - though less strongly hyped - alternative on that platform.
lol, read that as strongly typed at first
Today's topic of discussion: static hyping vs. dynamic hyping. When should you go bananas about your project?
 
Ok. No downvote, because you have a real, learning question. Mind you, I had downvotes because your responses to the comments are really really impatient, short-sighted and feel rude to me. You should probably change your attitude if you are trying to learn things. — sehe 18 secs ago
 
10:28 AM
hello
 
I have a question about "parallel universes"
to the physically inclined of you.. i have read about that recent "simulation" of the universe which came out about like we can observe today
but does that not falsify the "parallel universes" theory? because it seems like it can only come about in one version, the one we actually observe?
 
nope.
the simulation is of our universe only.
if there are other universes they are not included.
 
@JohannesSchaub-litb That's IMHO the "problem" with the whole universe theory stuff: even if there were many or if there were some statistical properties to what a universe could look like, there is no way to actually do statistics on the universe, because we only can observe 1.
 
lol, I typed "C declarator syntax an experiment that failed" into Google and found a SO answer written by me :)
 
10:32 AM
@rubenvb hmm. how would a simulation look like that actually observed the "splicing" of the universe into a multiverse?
would it need to simulate additional natural laws that the current simulations don't do?
 
What about quantum fluctuations?
 
@JohannesSchaub-litb You can only simulate something by implementing a set of rules that something should abide by. I don't think there are any useful "rules" for this kind of thing.
Note that this stuff is not my specialty, but I've given it some thought ;-)
@FredOverflow What about them?
 
just found an old visual basic upload of me from 2001: activevb.de/cgi-bin/upload/…
 
@rubenvb I don't know, just wanted to sound smart ;)
 
@FredOverflow Hehe, I used to give that as the reason for everything I couldn't explain ;-P
 
10:35 AM
@rubenvb Cosmic rays are also quite useful for that purpose ;)
 
everytime I say "implementation" instead of "compiler" I just want to sound smart xD
 
Ah, my SNES arrived, complete with a Gameboy Adapter. Now I can finally play Gameboy tetris on my flat screen :)
 
where did I end up? quantum fluctuations, multiverse simulations?
 
Don't worry, we also talk about Super Mario and stuff.
 
don't you guys know that our universe is just a simulation of the universe?
oh right, johannes, just read your opening question
wether this falsifies parallel universes
 
10:47 AM
If our universe was a simulation, how come we observe no bugs?
 
@rubenvb Certainly not in our current physical model.
@FredOverflow How do you know we don't?
 
there are bugs, we just don't know they're bugs because we don't know how it should be
 
maybe relativity is a bug.
 
@DeadMG I have never observed any crashes, segfaults or whatnot.
 
different architecture
 
10:48 AM
the simulation could be crashing all the time and you'd never know about it.
 
segfaults are a thing of the "past" (?)
 
if the universe is a simulation, we can only observe the input data, which does not include extra-simulation parameters.
 
the simulation johannes was talking about might be Milennium, or Aquarius, where they just evolved a whole lot of particles in a box under gravity and ended up (after ~14Gyr) with a situation much like ours
this doesn't falsify parallel universes becaus the cosmological parameters were set to those that we are used to
the multiverse theory assumes that we are just one instance in a multiverse where each universe has its own set of constants
and if you're talking about quantum universes, than the universal structure (galaxies etc) would be the same in every universe anyway
 
> You know how I know we’re not in The Matrix? If we were, the food would be better.
 
user1804599
@FredOverflow chat.rightfold.org
 
11:00 AM
what can be done about crazed users who downvote your question because you answered it yourself?
 
@JorenHeit hm i see
 
user1804599
@Mitch ban them.
 
@right
@rightfold if only it was that easy*
 
@FredOverflow The Maid Trix. A futuristic society where people no longer go to work and are served by partially robotic maids.
Idea for an anime :P
 
i know it's not C++, but i really have no idea where else to discuss this
 
11:03 AM
@sehe Whenever I ask something that makes it to isocpp.org you're then one answering it. Are you part of the editing team dude ? :P
 
You should, like, totally use cstdio instead of stdio.h. It's what all the cool kids are doing these days. — CoffeeandCode 51 mins ago
 
ha, really? i love it when people downvote my question without any explanation
 
user1804599
lol
 
ah, man. some people. the funny thing is, i've seen how this guy handles interaction with other users before, and it's like a train wreck
and the worse part is, i can't do anything about it beyond flag his comments
@DeadMG what's a CW?
 
I'm sorry
you seem to have mistaken me for Meta.
 
11:07 AM
Community fucking Wiki
 
oops, should have just searched..
 
Oh, don't worry, Mitch. Nobody searches anyway.
 
@Jefffrey i try to, just a bit distracted atm
@Jefffrey trying to figure out why the question is being downvoted
shrugs
"no disagreement can be the reason for personal offenses, however" - huh?
 
@Mitch Why do you even care?
It's just one downvote. You are going to receive a lot of them.
If you care about your reputation, stop whining about it and go answer some questions.
 
@Jefffrey Somedays I think I have a talent in receiving downvotes
 
11:17 AM
@Jefffrey it's 3 now :p i care because i carry the assumption that people have genuine, decent reasons for downvoting things, and i'd like to know why they think it's not a good question
 
in questions mostly
 
@Jefffrey i'm not hungry for rep, i just want to ensure that i'm asking and answering with quality
but i can't see anything wrong with the post, so i can't improve it
 
@Mitch there you go
 
@Mitch Some people don't agree with answering your own questions. Get over it.
 
@NikosAthanasiou thanks, but i'm still curious. i guess i'll just have do as @Jefffrey suggests and stop whining
@Jefffrey so you were always unaffected when you received downvotes for what seems like no reason, or you just stopped caring?
 
11:21 AM
Yes that's a good idea. Also don't get obseesed, I have a collague that is in SO all the time while @ work!
 
I usually just post a comment on the question/answer that got downvoted saying: "@downvoter, care to explain?". And then move on.
 
@NikosAthanasiou that's pretty bad :s
@NikosAthanasiou yeah, i don't want to get obsessed and end up like our old buddy Lazlo
@Jefffrey i'll do that
 
People that see a downvoted aswer/question with a comment saying "@downvoter, care to explain?" and no reply, tend to counter-upvote the downvote.
Unless it's obvious why the downvote was casted.
 
@Jefffrey ha, that's interesting. cheers
 
@Jefffrey How's the research on Beers going ? Any new findings /
 
11:25 AM
It has stopped for lack of fundings.
 
kick starter dude !
somewhere someone has done I'm sure
 
I'm lazy like that.
 
user1804599
I will now carefully remove my ass from my bed, and I'll take a shower.
 
@rightfold Let us know when your ass catches up with the rest of you.
 
user1804599
:D
 
11:32 AM
I haven't had a detached ass since my last thermonuclear curry.
 
Is there a term for libraries that are written badly on purpose ... so that one can't read them ?
 
Finnegans Wake.
 
seriously I was studying a very reputable (and established) spline library
and all over the function names were like
f1234434()
f1234435()
f1234436()
 
@NikosAthanasiou I don't understand - it you cannot read them, you cannot execute them?
 
No, I want to understand the algorithmic process
 
11:36 AM
Oh - stupid function names. Got it.
 
and the naming is making it mind boggling to read through
 
@NikosAthanasiou I call them 'opaque'.
 
@MartinJames Yes, it's not like the code is hard or advanced, but as if somebody run a tool after writing it
 
One thing that makes online compilers cool is that you can don't need to name your files. That's such an load of the mind.
 
is Wide still up on Coliru?
 
11:39 AM
Yep.
 
@NikosAthanasiou I would not be surprised if my DLL's look like that:)
 
Unless it is self destructing.
 
not as far as I know
 
/usr/local/bin/Wide
/usr/local/bin/Wide.sh
/usr/local/bin/Wide/CLI
 
WTF is up with FF now? The UI is laggy:(
 
11:41 AM
ah cheers
 
sbi
11:58 AM
Does anybody have the time to go through our FAQs? It seems they need fixing.
 
@sbi so hows your recruiting coming along?
 
Xeo
@sbi Did you change the wrong link?
The link to the meta question got changed from MSO to MSE automatically, but it seems to redirect back for non-existent questions
Maybe something's wrong on mobile with that redirection
 
12:18 PM
No repro
 
user1804599
Bukkake bukkake bukkake udon.
 
sbi
@Xeo I did the redirection on my PC. It didn't work there (nor on my phone), and it works now on my PC.
 
Xeo
@sbi You changed the link to the c++-faq tagged question list
 
sbi
@Xeo Nope.
 
Xeo
Err, yes? The link pointed to before, and now points to the meta question - same as the link that follows
 
sbi
12:30 PM
@ScarletAmaranth Here, not very well. With Melak we got a student working for us. We also had a job ad at some website for this here in Germany (the results on SE carreers were zero last time, so none there), and I went through a bunch of applications with my boss yesterday to find the ones we'll invite.
@Xeo Oh, Damn. How'd that happen?
 
@sbi interesting; what is it that you're looking for in CVs mewonders?
 
Xeo
@sbi You fucked up? :P
 
> For the more technical minded folks who want to skip the help docs: your site's DNS records are pointed to a deprecated IP address.
 
sbi
@Xeo Me? Never!
 
Hhahaha, GitHub is lovely.
 
12:33 PM
@ThePhD what's been up with you as of recent; haven't seen you around much
 
@ScarletAmaranth Finals are approaching, I think.
 
sbi
@ScarletAmaranth Mostly willingness and ability to learn and a drive to write good code. Being a good C++ programmer is a close 2nd. Knowing a thing or two about embedded programming and/or electrical engineering would be marvelous. Basically though, if you can convince us that you love to learn new stuff and are keen on writing good code, then you're on the list of invitees.
 
oh; I had a 10-week semester only as it's basically the last one
@sbi how does one... "imply" that in a CV? they're expected to have a rather... retarded structure (imho)
 
sbi
@ScarletAmaranth Shrug. I know it when I see it. whistles
Seriously, though, mostly you see little of that in a written application. Get to the interview and convince us there.
 
yeah; that's what I'm hinting at - CVs can be rather stupid
 
sbi
12:38 PM
They don't have to be, though. I saw my share and say you that some are more convincing then others.
 
(of course you can just cross out people who send an application in *.doc(x))
 
sbi
@ScarletAmaranth Unfortunately, you can't anymore.
 
Xeo
@sbi Would 'Hire me, I'm awesome' convince you?
 
"I have dashing good looks" could work too
 
sbi
12:41 PM
@ScarletAmaranth MSO is too entrenched in corporate IT, and many are too used to use it. Even C++ developers send applications as Word docs. Not many, I grant you that, but you cannot weed them out right away. Unfortunately.
 
what else would you send it in?
 
Xeo
pdf?
 
^ this
 
sbi
@Xeo Probably not, but then I know you're good and would recommend you right away. (You do remember that I told you you will eventually get sick of the game industry?)
 
I always found PDF to be an annoying format.
 
sbi
12:42 PM
@ScarletAmaranth Not here.
 
I don't even know any programs that can write PDFs.
 
Xeo
@sbi Aw, it worked for my current company. :P And I'm not sick of it yet, sorry. ;)
 
sbi
@DeadMG That ("I find it annoying") coming from you is not an argument for or against anything at all. You find everything annoying.
 
@sbi is preparing @Xeo for annexing
 
and every time I want to do shit like copy and paste or save a modified version I find that the author has disabled this feature or some super annoying shit like that
 
sbi
12:43 PM
@ScarletAmaranth I failed on that about two(?) years ago. :)
 
@sbi hahaha
 
Xeo
@DeadMG Word can export to PDF...
 
since when?
 
@sbi have you actually worked in the game industry, ever?
 
@DeadMG Years ago.
 
12:44 PM
I only have Word from years ago
 
sbi
@DeadMG I remember us having to look at issues with MS's preliminary version doing so in a company I left half decade ago.
 
hm
 
Xeo
note that it's not "save as..." but "export"
 
I only have Word 2k7, that's more than a half decade
 
Xeo
also, there are "print to pdf" virtual printer thingies, IIRC
 
sbi
@ScarletAmaranth Nope. I have met people who did, though, and in one company I came close to this, as it was one graduates competed to sell them to. (I ran after 10 months.)
 
well, I could shit around downloading addins and exploring every menu option or I could just use the format the program is designed to save in.
 
sbi
@DeadMG I'd give it a 50% chance it can do that. You might have to download some component for it, though, as Adobe originally fought against the feature.
@DeadMG ...or you could just check File/Save as..
 
Xeo
2 mins ago, by Xeo
note that it's not "save as..." but "export"
at least for Word 2013, which I have
 
just use TeX, vOv
 
sbi
12:48 PM
In 2010 it's under Save as.. (I just checked) and I bet the same would work for your version.
@ScarletAmaranth Will you talk to our IT department about this, please?
 
@sbi why are there idiots employed in your IT department :P?
 
@ScarletAmaranth because that's a standard for IT depts
3
 
overfull / underfull boxes are your worst nightmares tho : - /
 
sbi
This week me and our Scrum master put many hours (spread over five days) of effort into making our IT department allowing us to change revprops on our SVN repo. To no avail so far, despite them having put in 60mins into following a link I gave them which explained that my "just put exit 0 into this script" is right. Since this still was an issue at Friday's daily Scrum meeting, my idea of just migrating the damn repo to one of our servers is now considered.
 
who hired these people :D?
 
sbi
12:54 PM
I had a row with an admin at my fifth day at work, and most of what I complained about back then is by now implemented. But they continue to be a serious PITA on every possible (and seemingly quite a few impossible) occasions.
 
Xeo
Not the ape, apparently
 
sbi
@ScarletAmaranth IT is usually hired by not IT-savvy people.
Anyway, I need to continue making that pizza dough, repair kids' bikes, play Lego and read them books. Common weekend stuff for rainy Saturdays. :)
 
Xeo
have fun
 
@Xeo Yes, but why would I?
 
I's unfortunate - I could fill sbi's requirement quite well, but I already have too much work. Besides, I doubt that I could live in Berlin without getting drunk a lot and so getting fired:)
 
1:06 PM
@DeadMG Is there a text document format that you do not find annoying? :)
 
don't have a problem with docx
 
Wow...
 
@DeadMG So people can open it without needing Word??
 
what?
@CatPlusPlus Who doesn't have Word?
also, aren't there a bunch of other programs that open docx these days?
 
@VáclavZeman Maybe multiverses do exist after all, and DeadMG is a visitor from a particularly weird one.
8
 
1:08 PM
Plenty of people
 
@DeadMG Lots of people. It costs money, you know?
 
@FredOverflow :D
 
wasn't the whole point of docx that .doc was some proprietary binary file and .docx is an open XML file that anybody can create a reader for?
 
docx interop is terrible
The format is terrible
 
It doesn't really work that well.
 
user1804599
1:09 PM
Never needed Word since I left school.
 
user1804599
Never needed Word even at school, actually. iWork worked fine.
 
user1804599
And at work I use LibreOffice for reading Word documents. Works fine too.
 
I use google docs
last time I did an assignment on my phone while on the way to college
 
I have only used Google Docs for spreadsheets and it is quite the poor replacement.
 
It's hilariously bad
 
1:13 PM
depends on what you need it for I guess
 
It routinely fails even for simplest things
 
I use it to write word documents that are supposed to be documentations
 
I am surprised there hasn't been any recent development for google docs word-processing thing thing
(as far as I know anyway)
it's been horrible for years now
 
MS Word would not be that bad if people were able to use it properly.
Which they are mostly not.
I hate when I have to edit documents produced by other people where they add spaces between paragraphs, etc., using empty lines instead of the styles.
 
1:15 PM
@AlexM. You make it sound like using Word is overkill for what you do.
 
Because using Word properly is way more effort than it's worth
Esp if you're aiming at LaTeX quality
 
These days I write Markdown and then I either produce HTML and copy/paste into emails (yes). Or I write Markdown and produce PDFs. :)
 
abolish word; use TeX
 
Pandoc FTW!
 
@R.MartinhoFernandes I only need to change fonts, center text, insert some tables and use headings, so...
 
1:16 PM
HTML emails is the worst thing
 
(if it weren't for overfull boxes :-/)
 
Tables is p much the only reason I prefer Word to LaTeX
So bad ugh
 
1:29 PM
gday
 
@Xeo what is "Zustellbasis"?
 
Xeo
uh
Sorry, no idea
I don't even know what the German word is supposed to mean
@R.MartinhoFernandes Ah, seems to be the local place from where the stuff is then sent to you or something like that
 
@CatPlusPlus They are cool.
You can CSS shit and all.
 
Ahahaha HTML support in email readers is so great yes
HTML emails are either tables with veeery basic formatting or a giant image
There's a reason for those "not displaying correctly?" links in those
 
1:41 PM
@CatPlusPlus "C++ sucks because TurboC++ exists"
 
Yes, that is very relevant
 
"Html emails suck because some bad email reader exists"
 
It's the same situation as with browsers when IE6 was dominant
You just can't use anything other than basic shit because majority of your receivers will not see it properly
 
Works on my machine v0v
 
using your freestanding implementation?
 
1:43 PM
Yes that is very relevant too :cripes:
 
@Ă“lafurWaage lol
What major email reader does not support HTML properly?
inb4 define major
 
GMail :v
 
what reader does RMS use?
 
Also Outlooks always had trouble
 
user1804599
Emacs.
 
user1804599
1:46 PM
Duh.
 
Also more people use text-based clients than you'd think
 
@R.MartinhoFernandes that is quite helpful :)
@NikosAthanasiou No. I think the "editing dude(s)" are just subscribed to an RSS feed of SO questions tagged I suppose
And the fact that I answer your question must mean you ask interesting questions :) Nah. (In fact I more or less just monitor and you probably post in those tags?)
 
55
A: Increase close vote weight for gold tag badge holders

Tim PostWe're doing this for duplicates only to start, because it's incredibly silly not to do this. Not giving people with gold tag badges more abilities in their tags is just wasting some very valuable signal - here's why: If you have a gold badge in your tag, you know what's been asked before, in se...

 
that sounds like a good idea
 
It is.
 
2:05 PM
YOUR FACE IS A GOOD IDEA
 
user3010322
Your face gives me a good idea.~
 
it's mug, not face.
 
I've never seen anything like std::lock before.
10
A: Massive CPU load using std::lock (c++11)

Howard HinnantOn my machine, the following code prints out 10 times a second and consumes almost 0 cpu because most of the time the thread is either sleeping or blocked on a locked mutex: #include <chrono> #include <thread> #include <mutex> #include <iostream> std::mutex m1; std::mutex m2; void f1() { w...

^ That ::lock implemetation.
 
Moby is pretty nice.
 
Try-locking and unlocking.
Is this a common technique?
 
2:14 PM
It needs to do that to avoid deadlocks between two locks
When one thread has one lock and the other has another, and neither can lock the other one
 
I always read that a strict lock ordering is required to avoid deadlocks.
 
> Locks the given Lockable objects lock1, lock2, ..., lockn using a deadlock avoidance algorithm to avoid deadlock.
 
It tries L1 + L2 and if that fails it releases L1 and goes for L2 + L1.
I'm just surprised that I never read about these kind of locking strategies before.
 
@StackedCrooked IMHO, it's a design failure.
 
what is the extra scope there for?
 
2:19 PM
@ScarletAmaranth to unlock L0
 
@StackedCrooked ah; right, thanks
 
They are called scoped lock for a reason.
 
yeah it makes sense now :P
@StackedCrooked seen the latest FT btw? these epis are pretty good
 
unique_lock does have an unlock method though.
@ScarletAmaranth Soon!
 
@StackedCrooked Probably because it's such a bad idea.
 
user3010322
2:25 PM
296, 172
 
user3010322
800 x 600 image
 
Hello people, I have a small question regarding ucontext in UNIX
 
If some thread needs some complex set of locks, it should be unable to obtain ANY until the entire set it requires becomes available. Pissing about with TryLock and such like, sleep loops etc. is just stupid/lame.
 
user1804599
@Asymptote So?
 
is it fine if I can post the pastbin link?
I am not getting desired output while using setcontext and getcontext.
 
2:27 PM
 
:) ok I thought may be I can discuss it here, but let me post
 
Xeo
@MartinJames how the fuck would you achieve that without messing around with try_lock etc?
 
@MartinJames But we now have the memory model which enables us to prove the correctness. I'm certain that the algorithms used by std::lock will be based on that.
I don't think this can be compared to some newbie trying to fix his deadlocks by using ad-hock lock/unlock/try_lock combinations etc.
If that would be the case then I would lose all my trust in std.
 
okay, it's been two months since I last touched my iPad, selling this shit
I'll use the money for more useful stuff like helping myself stop gaming on integrated GPU and giving the rest away on rent
 
So it's basically like this:
(1) Lock all the locks.
(2) Retain the last lock.
(3) Release the previous locks.

If (1) fails then release all locks, yield the thread, and later try again in opposite order.
 
2:36 PM
@Xeo Just use one lock around a collection of booleans that represents the availablilty of each resource and a collection of sets of resources that are required by threads. If a thread wants some set [x] of resources, it enters the lock with its request. If the set is available immediately, fine. If it is not, its set is stored inside the lock and it's given a semaphore to wait on, it leaves the lock and waits on the semaphore.
When threads release resources, they enter the lock and check to see if any of the sets of resources can now be satisfied. If they can, the signal the relevant semaphore.
There you go. Complex resource control, no polling, no latency, no yield, no Trylock, no sleep.
 
Xeo
that sounds way more complicated and way more likely to cause congestion
 
Basically, IF YOU ARE POLLING FOR LOCKS YOU ARE DOING IT WRONG.
@Xeo It is more complicated. OTOH, it will actually work efficiently.
It's also MUCH easier to debug - only one thread can get inside the lock, and so it's easy to build in any kind of anti-starvation algorithm you like.
 
Xeo
if two threads need a disjoint set of resources (but share the set because of a third thread that needs some from both), one will have to wait, even though the resources are available
is what it seems like to me
 
@MartinJames In before the lock?
here's the thing though- every thread needs to use the lock around the collection of booleans, even if they're trying to use totally distinct locks.
that's gonna be an extra bottleneck for free right there.
 
@Xeo Sure, it will. It must not proceed until ALL its required resources become available.
 
2:45 PM
@MartinJames What, Are you the boss of the locks?
 
@DeadMG Yes. One lock, once per thread for acquire, once for release. No polling.
 
also
every thread needs to enter the one lock for every resource acquisition and release.
that's a lot of threads, a lot of events, and one single lock.
 
Xeo
@MartinJames Okay, example. Resource set A, B and C. Thread 1 needs A only, thread 2 needs B and C only, and thread 3 needs A, B and C. If thread 3 is done, 1 and 2 could proceed at the same time normally. Not with your idea.
 
@DeadMG Yes, that is correct.
 
Anyway lock-based concurrency is on the decline.
They were dangerous, so we brought in the Atomics.
 
Xeo
2:51 PM
atomics can use locks under the hood :P
 
@Xeo Yes, the could. Thread 3 enters the lock. It releases A, B, C. It iterates the container of requirements. It finds thread 1, gives it A and signals its semaphore, setting it running, leaving only B and C available. It continues to iterate and finds 2, gives it B and C and signals its semaphore, setting it running. It then exits the lock with 2 and 3 running.
 
The locks were so tight they could only be broken with nukes.
 
Xeo
@MartinJames okay, then I misunderstood your idea. sorry bout that
 
@Xeo I found it awkward to explain clearly 'cos message-length restriction:(
 
Xeo
it does require the threads to know about each other at some level though
 
2:56 PM
@Xeo Not really - they all have to have access to the same 'ComplexResourceController' object, but they don't need to know about the other threads competing for resources.
The call into the 'CRC' with their requirement set. When they run on, they have their resources, either because the resources were immediately available, or because they got blocked on a semaphore until their set became available. They have no clue about the other threads.
 

« first day (1302 days earlier)      last day (3650 days later) »