PKUOS - Pintos
Pintos source browser for PKU Operating System course
|
Go to the source code of this file.
Functions | |
int | main (int argc UNUSED, char *argv[]) |
Variables | |
const char * | test_name = "child-sort" |
Reads a 128 kB file into static data and "sorts" the bytes in it, using counting sort, a single-pass algorithm. More... | |
unsigned char | buf [128 *1024] |
size_t | histogram [256] |
int main | ( | int argc | UNUSED, |
char * | argv[] | ||
) |
unsigned char buf[128 *1024] |
Definition at line 12 of file child-sort.c.
Referenced by main().
size_t histogram[256] |
Definition at line 13 of file child-sort.c.
Referenced by main().
const char* test_name = "child-sort" |
Reads a 128 kB file into static data and "sorts" the bytes in it, using counting sort, a single-pass algorithm.
Child process for syn-read test.
The sorted data is written back to the same file in-place.
Definition at line 10 of file child-sort.c.