Write a pthreads program that implements a task queue


Problem

Use linked list operations, to write a Pthreads program that implements a "task queue".

The main thread begins by generating a random sorted linked list L. The user inputs a -number of tasks, and b - number of threads. A task can be member, delete, or insert operation on the list L. Each thread will do several tasks (each task is randomly choosing from member, delete, and insert) according to a and b. Your program must provide the reader-writer (RW) lock to protect L from incorrect status.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a pthreads program that implements a task queue
Reference No:- TGS03277023

Expected delivery within 24 Hours