- Launch Terminator
- Make a new directory for your Java project
- Type mkdir new_project && cd new_project
- Type touch Test.java.
- Type osub Test.java and paste this code.
public class Test {
public static void main(String[] args) {
/** | |
* Implementation of thread pool. | |
*/ | |
#include <pthread.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <semaphore.h> | |
#include "threadpool.h" |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define BUFFER_LENGTH 20 | |
void slice(char *dest, char *str, int begin, int num_of_chars); | |
void handle_request(char* command, short (*array)[]); | |
void insert_process(char* command, short (*array)[], short process); | |
int parse_process(char* token); |