Re: Convert C# command prompt app to Windows App

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Jeff Louie (jeff_louie_at_yahoo.com)
Date: 01/12/05


Date: Tue, 11 Jan 2005 21:35:08 -0800

Oh... If you expect to redirect cin _and_ cout, you will need to use two
separate threads to avoid a lock.

Regards,
Jeff

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Relevant Pages

  • Re: North Koreas Air Force and The Bomb
    ... I do, however, find his posts to be boring. ... I therefore avoid them -- ... With regards to North Korea, I haven't advocated doing anything -- I've ...
    (rec.aviation.piloting)
  • Re: Sharing objects between processes
    ... Subject: Sharing objects between processes ... I'd be more than happy to use multiprocessing; ... I can use a single lock over the entire object; ... I also don't need to avoid blocking on reads; ...
    (comp.lang.python)
  • Re: Recursive mutex that can be waited upon (pthread)
    ... on an object, you are releasing the lock to the object, hence of course the object is free for being changed. ... Java's mistake, to be clear, is not necessarily the "full release" wait, but the fact that the language has no support at all for invariants and cannot possibly detect any problems. ... And on top of that the problems are difficult for programmers to avoid because they usually stem from using Java as it should be used -- which is to say that the methods you call are opaque and decoupled. ... However, most functions expect that their invariants are "clean" on entry and exit, and "static" while they hold the mutex. ...
    (comp.programming.threads)
  • Re: Sharing objects between processes
    ... one updating thread takes user input, ... I can use a single lock over the entire object; ... a write is something I also want to avoid. ... def write_random: ...
    (comp.lang.python)
  • Re: [PATCH] spinlock: __raw_spin_is_locked() should return true for UP
    ... I once had a check of the current cpu runqueue lock is ... locked, and if it was, not to wake up klogd. ... avoid the kind of code that depends on spin_is_locked always returning ...
    (Linux-Kernel)