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

1 Expert Approved Answer
Step: 1 Unlock

The question is incomplete The provided information describes a program assignment task re... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!