The Solaris documentation states that a ULT may yield to another thread of the same priority. Isn’t it possible that there will be a run able thread of higher priority and that therefore the yield function should result in yielding to a thread of the same or higher priority?
Answer to relevant QuestionsIn Solaris 9 and Solaris 10, there is a one-to-one mapping between ULTs and LWPs. In Solaris 8, a single LWP supports one or more ULTs. a. What is the possible benefit of allowing a many-to-one mapping of ULTs to LWPs? b. In ...List the requirements for mutual exclusion. A software approach to mutual exclusion is Lamport’s bakery algorithm [LAMP74], so called because it is based on the practice in bakeries and other shops in which every customer receives a numbered ticket on arrival, ...The following pseudocode is a correct implementation of the producer/consumer problem with a bounded buffer: Labels p1, p2, p3 and c1, c2, c3 refer to the lines of code shown above (p2 and c2 each cover three lines of code). ...The two variables a and b have initial values of 1 and 2, respectively. The following code is for a Linux system: What possible errors are avoided by the use of the memory barriers?
Post your question