Hw3 - function 3 Create a region guarded by a lock such that only one thread can execute the region at a time and print the threadId as each thread

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Homework 3 This is the same as Homework 1, except use Java or Pthreads. Write and run an Java or Pthreads program that: 1. Determines the number of processors available to run the program on a qstruct and algol machine 2. Prints out a unique threadId for each thread using an Java or Pthreads built-in
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: function 3. Create a region guarded by a lock such that only one thread can execute the region at a time, and print the threadId as each thread executes that region. Turn in program listings and output for the above....
View Full Document

This note was uploaded on 02/19/2012 for the course ECE 563 taught by Professor Staff during the Spring '08 term at Purdue University-West Lafayette.

Ask a homework question - tutors are online