This preview shows page 1. Sign up to view the full content.
Unformatted text preview: Interprocess Communications in UNIX by John S. Grey (PrenticeHall) for this purpose. Do the following: 1) Write a program to approximate the value of by numerically integrating 4/(1+x 2 ) over the range 0 to 1 using trapezoid rule. Divide the range [0,1] in 200 intervals. Do the computations over each interval using a kernel level thread and add the results to obtain the approximate value of . The trapezoid rule for integrating a function ( f ( x )) works as follows. The range is divided into small intervals of equal width. Over each interval ( a,b ), the area under the curve is estimated using the formula ( ba )( f ( a )+ f ( b ))/2. All the areas thus obtained added to obtain the value of the integral. Such a method of computation is useful for computing in a multiprocessor shared memory system....
View
Full
Document
 Fall '11
 kannan
 Operating Systems

Click to edit the document details