srabbani@yahoo.com (Shuaib) writes:
[color=blue]
> I wonder if anybody could shed some light on a problem I am
> encountering.
>
> I have written a program in C that runs on Solaris 2.8. At busy times
> of the day there may be multiple instances of it running (5-10), each
> process taking approx. 3 seconds to complete.
>
> Each instance of the program basically fetches data from a Oracle
> database (using Remedy ARS API routines) and stores it in a user
> defined structure that I have defined as a global variable. The
> problem I encounter is when multiple instances of the program are
> running. Often I find that the data in memory being held in one
> process is mixed up with the data in memory of another.[/color]
Are these processes using shared memory? If not, it's impossible to
get a mixup. If they are using shared memory, you will get that sort
of problems, unless you do something to prevent it.
--
Måns Rullgård
mru@users.sf.net