• Anon (unregistered)

    Due to locking issues the post becomes "FirFirst!st!"

  • Anon (unregistered)

    I regret clicking on a specific word in the article.

  • Oliver Jones (google)

    Time for a WTF or two about devs who don't understand floating point, and other things that should have made them flunk CS201.

  • Dude (unregistered)

    One of my coworkers insisted something like this would work for locking threads. Thankfully, he actually listened when we explained to him why it wouldn't.

  • Bradley (unregistered)

    It's kind of like this bicycle lock: http://3.bp.blogspot.com/-0SfKxPfF8Do/UPwWj9whJaI/AAAAAAABURg/M6wUnK5KsFU/s1600/5.jpg

  • nullptr (nodebb)

    sigh

  • Da expert (unregistered)

    Threads?

  • Steve_The_Cynic (nodebb) in reply to Bradley

    Well, so long as there's a railing, lamppost, or similar inside the yellow loop, that might actually work to stop someone making off with the front wheel and the handlebars. It doesn't stop someone stealing the saddle and/or the rear wheel and/or the frame, but at least you'll have the handlebars and the front wheel. (Depending on how hard it is to remove the handlebars from the top of the steering column without cutting anything, you might even get to keep the frame.)

    The locking "solution" in the article is even less good than that.

  • Herby (unregistered)

    Sounds to me like the "Lock Ness Monster".

    Sorry, I couldn't resist. You can groan now.

  • codemonkey (unregistered)

    I can never remember how to do this. i always have to go to that stack overflow answer.

    threading is hard

  • siciac (unregistered) in reply to Oliver Jones

    Once they learn how to make monitors work, the next step is always trying to run hundreds of threads doing IO on a single disk, or trying to run 1000 threads that all stack up on a single monitor. :-/

  • cerkiewny (unregistered)

    I have seen similar code, It was introduced to fix some bug. Interestingly it was some sort of stack corruption... And it... did the job!? After a long investigation we found that the useless lock was shifting the values in the stack only to make the bug corrupt some other memory. The bug went away...

    Creating a stack in which 90% of values are only there to be corrupted seems like legit solution to problems. I call the pattern: "meat shield".

  • Rohit sharma (google)

    Showbox for iOS is in this class and you will have crying ascribes to understandin

  • doubting_poster (unregistered) in reply to cerkiewny

    nice!

  • Rohit sharma (google)

    mobdro download is creating a lot of buzz these days. Not only movies, but you can also watch TV shoes live, and that too completely free of cost

  • sdgxdvx (unregistered)

    You don't always have to use your pumpkin for design and showcase your artisan skills to friends. Turning an extra pumpkin into a ale chiller isn't difficult to do is a superb way at hand out goodies at a celebration. All you have to is a pumpkin, a blade, some ice, plus some beverage and you're virtually placed. Just make sure how big is your pumpkin cool matches the amount of guests you're looking to drop by. Halloween Pumpkin pictures Pumpkin Carving Patterns 2017 Happy Halloween Quotes

  • sdgxdvx (unregistered)

    Your brand-new valuable tips imply much a person like me and intensely more to my workers in offices. With thanks a lot; from everyone folks. Thanksgiving Wishes Happy Thanksgiving Pictures

  • Patricia Howell (google)

    Great Story. Thanks. gmail login

  • Ahmed Khan (unregistered)

    In the United States, pumpkins run as an inseparable unit with the fall occasions of Halloween and Thanksgiving. An orange natural product reaped in October, this nutritious and adaptable plant highlights blossoms, seeds, and substance that are palatable and rich in vitamins. Pumpkin is utilized to make soups, sweets, and bread, and numerous Americans incorporate pumpkin pie in their Thanksgiving dinners. Cutting pumpkins into jack-o'- lights is a well known Halloween convention that began several years back in Ireland. In those days, notwithstanding, jack-o'- lamps were made out of turnips or potatoes; it wasn't until the point that Irish outsiders landed in America and found the pumpkin that another Halloween custom was conceived. Halloween Pumpkin Carving Templates Pumpkin Carving Templates Halloween Pumpkin Coloring Pages Printables Jack O Lantern Images Printable Jack O Lantern Coloring Pages Free

Leave a comment on “Synchronized Threads”

Log In or post as a guest

Replying to comment #:

« Return to Article