vault backup: 2022-10-12 10:14:45

This commit is contained in:
Jet Hughes 2022-10-12 10:14:45 +13:00
parent bdce9d72d7
commit b3590cc383
3 changed files with 18 additions and 7 deletions

View File

@ -69,16 +69,16 @@ consumer must wait if buffer is empty
``` c
void *myThreadFun(void *vargp) {
sleep(1)
printf("Hello from Thread \n")
return NULL
sleep(1);
printf("Hello from Thread \n");
return NULL;
}
int main() {
pthread_t thread_id
printf("Before Thread\n")
pthread_create(&thread_id, NULL, myThreadFun, NULL)
pthread_join(thread_id, NULL)
pthread_t thread_id;
printf("Before Thread\n");
pthread_create(&thread_id, NULL, myThreadFun, NULL);
pthread_join(thread_id, NULL);
printf("After Thread\n");
exit(0);
}

View File

@ -22,6 +22,8 @@ tags:
- [cosc203-lab17](notes/cosc203-lab17.md)
- [cosc203-lab18](notes/cosc203-lab18.md)
- [cosc203-lab19](notes/cosc203-lab19.md)
- [cosc203-lab20](notes/cosc203-lab20.md)
- [cosc203-lab25](notes/cosc203-lab25.md)
# Notes
[dns](notes/dns.md)

View File

@ -0,0 +1,9 @@
---
title: "cosc203-lab24"
aliases:
tags:
- cosc203
- lab
---