Thread: Solution threads

  1. #1
    Banned
    Join Date
    Apr 2015
    Posts
    596

    Solution threads

    Hi guys, I'm reading a deadlock concept and I didn't understand why if we want to solve a problem of race condition of multiple thread over a shared program, then we are assume that there's no threads working inside that program, we do update with the solution and then we check if threads are working over it correctly or not .. my question why we are assuming when we solve deadlock/race condition problems, that the threads/process are off and not working ..and then we are doing solution and then checking back if my solution is working over threads or not ..
    what's confused me is, there might be a thread inside my program and I can do update over it although my thread is inside my program.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    37,537
    We're not your google interface.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. threads inside threads problem
    By Ivan Mili in forum C++ Programming
    Replies: 4
    Last Post: 08-22-2014, 09:07 AM
  2. need a solution
    By igalka in forum Tech Board
    Replies: 4
    Last Post: 11-20-2013, 09:22 AM
  3. Replies: 22
    Last Post: 12-14-2012, 11:00 AM
  4. Threads , how? Portable Threads Library?
    By adderly in forum C++ Programming
    Replies: 3
    Last Post: 12-15-2011, 07:54 AM
  5. a point of threads to create multiple threads
    By v3dant in forum C Programming
    Replies: 3
    Last Post: 10-06-2004, 09:48 AM

Tags for this Thread