Re: a synchronization issue - jusy for you guys

From: David Reeve (dree4456_at_big-pond.net.au)
Date: 06/14/04

  • Next message: [BuKoX]: "setlength and access violation"
    Date: Mon, 14 Jun 2004 01:19:36 GMT
    
    

    "Maarten Wiltink" <maarten@kittensandcats.net> wrote in message
    news:40cad672$0$563$e4fe514c@news.xs4all.nl...
    > "Jamie" <jamie_5_not_valid_after_5_Please@charter.net> wrote in message
    > news:10c6etudcvp1f09@corp.supernews.com...
    >
    > > try using something that has been around for ages and works for global
    > > of app only.
    > > If GlobalFindAtom('name of your atom') = 0 then
    > > Begin
    > > MyAdom := GlobalAddAtom('name of your atom');
    >
    > Nice race condition.
    >
    Nice example of a pragmatic fix that 'solves' the immediate problem by
    reducing the incidence of thread conflict to an unnoticeable level. It is
    then built-in, and forgotten, and will live on to manifest itself as a
    slight quirkiness of the application. However, three years down the line, a
    change of OS, a change in the load of the OS due to new programs being
    loaded, alterations to the app itself, all these things and more could raise
    the incidence of conflict, with the result that the app fails. Using the
    synchronisation objects the OS provides, or Delphi provides for that matter,
    is really not so difficult.

    Dave


  • Next message: [BuKoX]: "setlength and access violation"

    Relevant Pages

    • Re: Console app freezes
      ... race condition cause a hang? ... I'm getting quite worried because i have been working on this app for quite ... > multithreaded applications to hang. ... the system time at the bottom right corner also freezes). ...
      (microsoft.public.dotnet.framework.compactframework)
    • Re: Simple race condition that I cant solve.
      ... > Today I found that an app I'm working on has a race condition. ... I set /closed/ to true in the main thread, and expect the event handler ... Prev by Date: ...
      (microsoft.public.dotnet.framework)
    • Re: a synchronization issue - jusy for you guys
      ... > of app only. ... Nice race condition. ... Groetjes, ... Maarten Wiltink ...
      (comp.lang.pascal.delphi.misc)