Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tests/preempt_longrun/processor.c

    r85b1deb r863c413  
    22#include <thread>
    33#include <time>
    4 
    5 #include <unistd.h>
    64
    75#ifndef PREEMPTION_RATE
     
    1311}
    1412
    15 static const unsigned long N = 50_000ul;
     13static const unsigned long N = 5_000ul;
    1614
    1715int main(int argc, char* argv[]) {
    1816        processor * p[15];
    19         write(STDOUT_FILENO, "Preparing\n", sizeof("Preparing\n"));
    2017        for ( int pi = 0; pi < 15; pi++ ) {
    2118                p[pi] = new();
    2219        }
    23         write(STDOUT_FILENO, "Starting\n", sizeof("Starting\n"));
    2420        for ( int i = 0; i < N; i++) {
    2521                int pi = i % 15;
     
    2723                p[pi] = new();
    2824        }
    29         write(STDOUT_FILENO, "Stopping\n", sizeof("Stopping\n"));
    3025        for ( int pi = 0; pi < 15; pi++ ) {
    3126                delete( p[pi] );
    3227        }
    33         write(STDOUT_FILENO, "Done\n", sizeof("Done\n"));
    3428}
Note: See TracChangeset for help on using the changeset viewer.