home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Elysian Archive
/
AmigaElysianArchive.iso
/
prog
/
c
/
rconfig.lha
/
RConfig_v1.1
/
tests
/
2
/
test2.c
< prev
Wrap
C/C++ Source or Header
|
1992-09-20
|
642b
|
36 lines
/*
* RConfig Validation Suite by Anthon Pang, Omni Communications Products
*
* Object Code: resstart (residentable startup)
* Assigned Test # 2
* Requirements: Make program resident first and run two copies concurrently
* Desired Observation(s):
* Small data model variables [from each instance] should be independent.
*/
#include <exec/types.h>
#include <dos/dos.h>
#include <clib/dos_protos.h>
#include <stdio.h>
#include "rlib.h"
/*
* global
*/
long y;
void main() {
y = 0L;
printf("y = %ld\n",y);
Delay(500); /* wait 10 seconds */
y++; /* critical section */
printf("y = %ld\n",y);
exit(0);
}