Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Lv 56,178 points

jacob_v

Favorite Answers5%
Answers1,815
  • Multithreaded linked list in C++?

    I'm trying to write a socket based program that will pull packets off a stream and parse them into a linked list that will then be processed to do actual work in another thread. My idea, though, to keep the socket stream and parser moving along and prevent the socket thread and the processor thread from ultimately being extremely serial, is to place the mutex for each node within the node itself and have the stream thread lock each node as it creates it, parse the packet and fill the node, then create the next node and lock that one before unlocking the node it just finished with. The processor thread will then follow behind attempting to lock each node before working on it, doing its work, then unlocking and deleting the node. Before I dedicate a lot of time implementing this, though, I was wondering if anyone could think of anything I've overlooked, or has any better ideas or suggestions?

    1 AnswerProgramming & Design10 years ago
  • Why, if evolution is false, can creationists only argue against straw man versions of the theory?

    I've been wondering this for a while, it doesn't make sense. If the theory itself is actually false then creationists should be able to argue against the actual theory itself, but they only ever argue against straw man versions of the theory. When they aren't using straw man versions of thermodynamics that is.

    8 AnswersReligion & Spirituality1 decade ago