---
# System prepended metadata

title: multi-thread

---

# multi-thread
### _Name_ 
thread_create - thread creation

### _Signature_
```C
int thread_create(int thread_id, void *func, void *args)
```

### Parameters
int thread_id - the thread id
void* func - name of function to be executed for the thread to be created
void* args - arguments to the function

### Return Value
On success return 1, On failure return -1


### _Name_ 
thread_join - wait for thread termination

### _Signature_
```C
thread_join(int thread_id)
```

### _Parameters_
int thread_id - the thread id to wait for termination

### _Return Value_
On success return 1, On failure return -1


### _Name_ 
thread_exit - thread termination

### _Signature_
```C
void thread_exit(void)
```

### _Parameters_
NULL

### _Return Value_
On success return 1, On failure return -1