1
1
openmpi/orte/test/mpi/debugger.c

32 строки
458 B
C
Исходник Обычный вид История

/* -*- C -*-
*
* $HEADER$
*
* A program that just spins - provides mechanism for testing user-driven
* abnormal program termination
*/
#include <stdio.h>
#include <unistd.h>
int main(int argc, char* argv[])
{
int i, rc, j=0;
double pi;
pid_t pid;
pid = getpid();
printf("spin: Pid %ld\n", (long)pid);
2015-06-24 06:59:57 +03:00
i = 0;
while (0 == j) {
i++;
pi = i / 3.14159256;
if (i > 100) i = 0;
}
2015-06-24 06:59:57 +03:00
return 0;
}