Question

In: Computer Science

In Windows system programming, many system resources are represented as kernel objects, each of which is...

In Windows system programming, many system resources are represented as kernel objects, each of which is represented as a handle. Discuss with 3 examples how the system programmer can manipulate these handle objects.

Solutions

Expert Solution

In general Kernel object handles are process specific. That is, a process must either create the object or open an existing object to obtain a kernel object handle. In Windows programming , many system represented as a kernel objects, that is handeld by multiple way. We know that each type of kernel object supports its own set of access rights, in this cause For example, event handles can have set or wait access (or both), file handles can have read or write access (or both), and so on.

The windows application creates an event object. The CreateEvent function creates the event object and returns an object handle.After the event object has been created, the application can use the event handle to set or wait on the event. The handle remains valid until the application closes the handle or terminates.

Most kernel objects support multiple handles to a single object. The Windows application in the preceding illustration could obtain additional event object handles by using the OpenEvent function, This method enables an application to have handles with different access rights.For example, Handle 1 might have set and wait access to the event, and Handle 2 might have only wait access.

If another process knows the event name and has security access to the object, it can create its own event object handle by using OpenEvent. The creating application could also duplicate one of its handles into the same process or into another process by using the DuplicateHandle function.

Using DMA system programer handel Karnel type of objects, DMA means Direct Memory Access, it can peripheral device control a processor's memory bus directly.DMA permits the peripheral, such as a UART, to transfer data directly to or from memory without having each byte (or word) handled by the processor.Direct Memory Access is useful whenever the CPU cannot keep up with the data transfer rate, or when the CPU needs to perform work while waiting for relatively slow I/O data transfers.DMA is also used for on-chip data transfer in multi-core processors. So this cause easily handeld objects by DMA.


Related Solutions

8a) In Windows system programming, many system resources are represented as kernel objects, each of which...
8a) In Windows system programming, many system resources are represented as kernel objects, each of which is represented as a handle. Discuss with 3 examples how the system programmer can manipulate these handle objects. AP, 8 b) Write a C/C++ system program to move a file from one folder to another in the Windows file system. Compile and run the program and copy the source code into your answer booklet. CR,10 c) Compare and contrast processes and threads and discuss...
Explain what classes and objects are in object - oriented programming. Give an example of each...
Explain what classes and objects are in object - oriented programming. Give an example of each and explain how they work together in a computer program.
Identify the most important resources and capabilities represented in a=Apple's global supply chain (considered my many...
Identify the most important resources and capabilities represented in a=Apple's global supply chain (considered my many to be the best in the world), using the VRIO approach. Additionally, What do you think are some of the key global issues and options Apple faces going forward (from 2020)?
How many members to an IRB? and what are each position that should be represented on...
How many members to an IRB? and what are each position that should be represented on the IRB?
Consider a system consisting of 4 resources of the same type that are shared among 3 processes, each of which needs at most 2 resources.
Consider a system consisting of 4 resources of the same type that are shared among 3 processes, each of which needs at most 2 resources. Show that the system is deadlock-free. Hint: Show that the condition ((claim-allocated) <= available) can always be satisfied.
5. Microsoft Corporation decides how many packets of the new operating system (Windows Vista) it is...
5. Microsoft Corporation decides how many packets of the new operating system (Windows Vista) it is going to sell on the market. The research (fixed) costs associated with the development of the new system amounts to F = $1000. The variable costs of the packet is negligible C(y) = 0. Microsoft’s inverse demand for the new operating system is given by P (y) = 100 − y. • Assume that Microsoft cannot discriminate among its customers. Find geometrically and analytically...
Programming Challenge #10. C++ Early Objects 10ed. A talent competition has five judges, each of whom...
Programming Challenge #10. C++ Early Objects 10ed. A talent competition has five judges, each of whom awards a score between 0 and 10 to each performer. Fractional scores, such as 8.3, are allowed. A performer's final score is determined by dropping the highest and lowest score received, then averaging #include <iostream> #include <iomanip> using namespace std; // Function prototypes double getJudgeData(); double calcScore(double, double, double, double, double); double findLowest(double, double, double, double, double); double findHighest(double, double, double, double, double); int...
2. If each of the following objects are rotating with the same angular velocity, ?, which...
2. If each of the following objects are rotating with the same angular velocity, ?, which would be the hardest to stop? (i.e., require the largest amount of work). A hoop with mass (1/2)M and radius 2R rotating about its cylinder axis. A solid cylinder with mass 4M and radius (3/4)R rotating about its cylinder axis. A solid sphere with mass 8M and radius (2/3)R rotating about any diameter. A hoop with mass 4M and radius (1/2)R rotating about its...
Which of the following two windows would insulate better, and by how many times lower would...
Which of the following two windows would insulate better, and by how many times lower would the rate of thermal conduction through it be compared to the other? Take both to be airtight and ignore radiative losses. Each window has a total size of 1.2 m high by 0.6 m wide, with the outer 2 cm edge of each window being the frame. For simplicity, take the frames to have the same thickness as the pane (of course for a...
In main, create two FracList objects, ask the user how many elements to allocate for each...
In main, create two FracList objects, ask the user how many elements to allocate for each list, read as many Fraction objects from the keyboard as specified by the user into each (using >> operator). Sort both lists using the sort member function and display them; and then search for a value read from the user in both lists and print the index of the first occurrence or that it could not be found in either list. Swap the two...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT