Re: a synchronization issue - jusy for you guys
From: David Reeve (dree4456_at_big-pond.net.au)
Date: 06/14/04
- Previous message: Brad Blanchard: "Re: Can I Post Here"
- In reply to: Maarten Wiltink: "Re: a synchronization issue - jusy for you guys"
- Next in thread: Stephan Eggermont: "Re: a synchronization issue - jusy for you guys"
- Reply: Stephan Eggermont: "Re: a synchronization issue - jusy for you guys"
- Reply: Martin Harvey (Demon Account): "Re: a synchronization issue - jusy for you guys"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: Brad Blanchard: "Re: Can I Post Here"
- In reply to: Maarten Wiltink: "Re: a synchronization issue - jusy for you guys"
- Next in thread: Stephan Eggermont: "Re: a synchronization issue - jusy for you guys"
- Reply: Stephan Eggermont: "Re: a synchronization issue - jusy for you guys"
- Reply: Martin Harvey (Demon Account): "Re: a synchronization issue - jusy for you guys"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|