diff --git a/content/notes/18-processes-sharing-and-threads.md b/content/notes/18-processes-sharing-and-threads.md index 5084ac392..e4cfa2bd3 100644 --- a/content/notes/18-processes-sharing-and-threads.md +++ b/content/notes/18-processes-sharing-and-threads.md @@ -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); } diff --git a/content/notes/cosc-203.md b/content/notes/cosc-203.md index a39388041..157782819 100644 --- a/content/notes/cosc-203.md +++ b/content/notes/cosc-203.md @@ -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) diff --git a/content/notes/cosc203-lab24.md b/content/notes/cosc203-lab24.md new file mode 100644 index 000000000..3e6327152 --- /dev/null +++ b/content/notes/cosc203-lab24.md @@ -0,0 +1,9 @@ +--- +title: "cosc203-lab24" +aliases: +tags: +- cosc203 +- lab +--- + +