Question

In: Computer Science

What is the relocation problem? What is a spinlock? What are its characteristics?

What is the relocation problem?

What is a spinlock? What are its characteristics?

What is a semaphore? What is a mutex?

Solutions

Expert Solution

Relocation problem :-

Relocation is the process of assigning load address for position-dependant code data of a program and adjusting the cod and data to reflect the assigned address.

Spinlock:-

When a thread tires to lock a spinlock and it does not succeed,it will continuously retry locking it, until it finally succeeds thus it will not allow another thread to take its place. The operating system will forcefully switch to another thread once the cpu runtime quantum of current thread has been exceeded.

Semaphore:-

A semaphore is an shared vairable or integer to synchronise the progress of interacting processes. It is basically a synchronizing tool and is accessed by p() and v() respectively.

Mutex:-

When a thread tries to lock a mutex and it does not succeed because the mutex is already locked. It will go to sleep immediately allowing another thread to run. It will continue to sleep until being woken up,which will be the case once the mutex is being unlocked by whatever thread was holding lock before.


Related Solutions

What is a research problem describe its basic characteristics in corporate organizations perspective.
What is a research problem describe its basic characteristics in corporate organizations perspective.
: What is a research problem describe its basic characteristics in corporate organizations perspective.
: What is a research problem describe its basic characteristics in corporate organizations perspective.
A steel company is considering the relocation of one of its manufacturing plants. The company’s executives...
A steel company is considering the relocation of one of its manufacturing plants. The company’s executives have selected four areas that they believe are suitable locations. However, they want to determine if the average wages are significantly different in any of the locations, since this could have a major impact on the cost of production. A survey of hourly wages of similar workers in each of the four areas is performed with the following results. Do the data indicate a...
A steel company is considering the relocation of one of its manufacturing plants. The company’s executives...
A steel company is considering the relocation of one of its manufacturing plants. The company’s executives have selected four areas that they believe are suitable locations. However, they want to determine if the average wages are significantly different in any of the locations, since this could have a major impact on the cost of production. A survey of hourly wages of similar workers in each of the four areas is performed with the following results. Do the data indicate a...
What is Fair Presentation and explain what its' characteristics are?
What is Fair Presentation and explain what its' characteristics are?
What is Legal compliance accounting and explain what its' characteristics are?
What is Legal compliance accounting and explain what its' characteristics are?
What is dynamic SQL? What is a subquery, and what are its basic characteristics?
What is dynamic SQL? What is a subquery, and what are its basic characteristics?
Problem Description: What is a test case? What are the characteristics of a good test case?...
Problem Description: What is a test case? What are the characteristics of a good test case? What is a driver? What is a stub? With what type of test is each most closely associated?
Define/explain intrinsic semiconductor. What are its characteristics
Define/explain intrinsic semiconductor. What are its characteristics
1. What are the tradeoffs among on-site expansion, new location, and relocation? 2. Explain what the...
1. What are the tradeoffs among on-site expansion, new location, and relocation? 2. Explain what the purpose of assembly line balancing is and briefly describe    how it is done and supports the needs of product layout.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT