Question
Program Assignment 2: Thread Handling. Objective: This program assignment is provided to let the students know how to handle threads and enhance system availability on
Program Assignment 2: Thread Handling.
Objective: This program assignment is provided to let the students know how to handle threads and enhance system availability on a multiprocessor or multicore environment.
A single process is supposed to create multiple threads with runner functions which include individual threads roles. Threads can be created by using Pthreads API, Win32 API, or Java API. on Unix/Linux or Windows platform environment. Environment: Unix/Linux environment (VM Linux or Triton Server), Windows platform Language: C, C++, Java Requirements: i. You have wide range of choices for this assignment. First, design your program to explain the basic concept of the process management in Unix Kernel.
This main idea will be evolved to show your understanding on inter-process communication, file processing, etc.
ii. Refer to the following thread API: - pthread_create(), pthread_join(), CreateThread(), CloseHandle(), ResumeThread(),
iii. The program should create at least two different threads and assign corresponding runner functions with the threads.
iv. The output should contain the screen capture of the execution procedure of the program.
v. Runner function may contain any logic you've designed, for example login procedure by opening session, collection of bank account information, catalog information display, audio/image data handling, etc.
vi. Result should be organized as a document which explains the overview of your program, code, execution results, and the conclusion including justification of your program, lessons you've learned, comments, etc. Note: i. Before you include Pthread API in your c source code, - #include ii. To compile the code written in Pthread API, - gcc -lpthread -o threadtest threadtest.c
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started