Last change
on this file since 131 was
117,
checked in by rosiere, 15 years ago
|
1) Platforms : add new organization for test
2) Load_Store_Unit : add array to count nb_check in store_queue
3) Issue_queue and Core_Glue : rewrite the issue network
4) Special_Register_Unit : add reset value to register CID
5) Softwares : add multicontext test
6) Softwares : add SPECINT
7) Softwares : add MiBench?
7) Read_queue : inhib access for r0
8) Change Core_Glue (network) - dont yet support priority and load balancing scheme
|
-
Property svn:keywords set to
Id
|
File size:
636 bytes
|
Rev | Line | |
---|
[117] | 1 | // $Id: main.c 117 2009-05-16 14:42:39Z rosiere $ |
---|
| 2 | |
---|
| 3 | //=====[ main ]================================================================= |
---|
| 4 | /* |
---|
| 5 | * All thread execute this routine |
---|
| 6 | * Initialize the thread and attribute a Workload at each thread |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #include <stdlib.h> |
---|
| 10 | #include <stdio.h> |
---|
| 11 | #include <sys/types.h> |
---|
| 12 | #include <unistd.h> |
---|
| 13 | |
---|
| 14 | #include "workload.h" |
---|
| 15 | |
---|
| 16 | int main() |
---|
| 17 | { |
---|
| 18 | int pid = (int)getpid(); |
---|
| 19 | |
---|
| 20 | printf("Start process %d\n",pid); |
---|
| 21 | |
---|
| 22 | if ((pid < NB_THREAD_MAX) && |
---|
| 23 | (pid < (int)NB_WORKLOAD)) |
---|
| 24 | (*WorkLoad[pid])(); |
---|
| 25 | else |
---|
| 26 | printf("The number of function in the workload is %d. (maximum of thread is : %d)\n",(int)NB_WORKLOAD,NB_THREAD_MAX); |
---|
| 27 | |
---|
| 28 | exit (0); |
---|
| 29 | |
---|
| 30 | while (1); |
---|
| 31 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.