agora inbox for postgres@postgres.berkeley.edu  
help / color / mirror / Atom feed
From: Farouk Ho <farouk@van.oz.au>
To: postgres@postgres.Berkeley.EDU
Date: Fri, 22 Apr 94 13:17:45 AEST
Message-ID: <9404221317.aa14397@vanbig.van.oz.au> (raw)

Newsgroups: vanoco.lists.postgres
Path: vanbig.van.oz.au!farouk
From: farouk@van.oz.au (Farouk Ho)
Subject: help with record locking
Organization: Vanoco Pty. Ltd. - Australia
Date: 22 Apr 1994 03:17:39 GMT
Message-ID: <FAROUK.94Apr22131739@vanbig.van.oz.au>
Sender: farouk@van.oz.au (Farouk Ho)
Lines: 16


Hi y'all,

The situation is this, there are several tasks are accessing a single class
with one instance, containing a serial number. Each task can at any time
access the instance and update the value by 1 (retrieve and update cmd).
What I need is that when a task access the instance, other task should not
be able to access it and must wait until the previous task has finish (thus
each task should access a different value).

Is there a way to stop the 2nd task from accessing before the 1st one has
finish ?
Is there another way of doing this ?

Any help is greatly appreciated and the cheque's in the mail.





reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: postgres@postgres.berkeley.edu
  Cc: farouk@van.oz.au
  Subject: Re: 
  In-Reply-To: <9404221317.aa14397@vanbig.van.oz.au>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox