This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdlib.h> | |
| #include <stdio.h> | |
| int compare_int(void* va, void* vb){ | |
| int* a = va; | |
| int* b = vb; | |
| return *b - *a; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdlib.h> | |
| #include <stdio.h> | |
| #include <time.h> | |
| #include <math.h> | |
| #include <assert.h> | |
| // #define ARRAY_SIZE 100 | |
| #define MAX_NUMBER 100 | |
| #define bool char |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <pthread.h> | |
| void* t_routine(void* args){ | |
| unsigned int i = 0; | |
| int a; | |
| printf("Running thread!\n"); | |
| for(i=0;i<4000000000;i++){ | |
| a = 2*2; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "database/sql" | |
| "errors" | |
| "fmt" | |
| "log" | |
| "math/rand" | |
| "runtime" | |
| "strings" |
OlderNewer