Windows Programing

  Home  Computer Programming  Windows Programing


“Windows Programing guideline for job interview preparation. Explore list of Windows Programing frequently asked questions(FAQs) asked in number of Windows Programing interviews. Post your comments as your suggestions, questions and answers on any Windows Programing Interview Question or answer. Ask Windows Programing Question, your question will be answered by our fellow friends.”



35 Windows Programing Questions And Answers

22⟩ Explain the cause of thrashing? How does the system detect thrashing? Once it detects thrashing, what can the system do to eliminate this problem?

Thrashing is caused by under allocation of the minimum number of pages required by a process, forcing it to continuously page fault. The system can detect thrashing by evaluating the level of CPU utilization as compared to the level of multiprogramming. It can be eliminated by reducing the level of multiprogramming.

 196 views

24⟩ Explain What are types of kernel objects?

Several types of kernel objects, such as access token objects, event objects, file objects, file-mapping objects, I/O completion port objects, job objects, mailslot objects, mutex objects, pipe objects, process objects, semaphore objects, thread objects, and waitable timer objects.

 189 views

25⟩ How to create a Mutex?

A thread uses the CreateMutex function to create a mutex object. The creating thread can request immediate ownership of the mutex object and can also specify a name for the mutex object

 179 views

27⟩ Explain How do other threads own the mutex?

Threads in other processes can open a handle to an existing named mutex object by specifying its name in a call to theOpenMutex - function. Any thread with a handle to a mutex object can use one of the wait functions to request ownership of the mutex object. If the mutex object is owned by another thread, the wait function blocks the requesting thread until the owning thread releases the mutex object using theReleaseMutex - function.

 172 views

30⟩ What is difference between a computer process and thread?

A single process can have multiple threads that share global data and address space with other threads running in the same process, and therefore can operate on the same data set easily. Processes do not share address space and a different mechanism must be used if they are to share data.

If we consider running a word processing program to be a process, then the auto-save and spell check features that occur in the background are different threads of that process which are all operating on the same data set (your document).

process:

In computing, a process is an instance of a computer program that is being sequentially executed[1] by a computer system that has the ability to run several computer programs concurrently.

Thread:

A single process may contain several executable programs (threads) that work together as a coherent whole. One thread might, for example, handle error signals, another might send a message about the error to the user, while a third thread is executing the actual task of the...

 163 views

32⟩ Explain LDAP?

LDAP, Lightweight Directory Access Protocol, is an Internet protocol that email and other programs use to look up information from a server.

 174 views

33⟩ Explain a Real-Time System?

A real time process is a process that must respond to the events within a certain time period. A real time operating system is an operating system that can run real time processes successfully

 179 views

34⟩ Explain INODE?

INODE is a pointer to a block on the disk and it is unique.

Inode is an unique number. Inode holds metadata of files.

 185 views

35⟩ Explain CPU Scheduler?

► Selects from among the processes in memory that are ready to execute, and allocates the CPU to one of them.

► CPU scheduling decisions may take place when a process:

1.Switches from running to waiting state.

2.Switches from running to ready state.

3.Switches from waiting to ready.

4.Terminates.

► Scheduling under 1 and 4 is nonpreemptive.

► All other scheduling is preemptive.

 179 views