Windows Threads

  Home  OS Windows  Windows Threads


“Windows Threads frequently Asked Questions in various Windows Threads job Interviews by interviewer. The set of Windows Threads interview questions here ensures that you offer a perfect answer to the interview questions posed to you. Get preparation of Windows Threads job interview”



16 Windows Threads Questions And Answers

2⟩ What is Windows DAEMON?

Daemon stands for Disk and Execution Monitor. A daemon is a

long-running background process that answers requests for

services. The term originated with Unix, but most operating

systems use daemons in some form or another.

 125 views

4⟩ semaphore variable is different from ordinary variable by?

Semaphore variable is used under 'n' process solutions to

handshake mutual exclusion rule, where as ordinary variable

is used such circumstance is error prone if set that

variable as boolean type even you get problem while setting

value to parent thread.

where n>1

check it out!

 141 views

6⟩ Which one you will use to implement critical section?

Now sure what is asked but anyway:

1. If the question is how would you implement critical

section mechanism then the answer is to use a mutex.

2. If the question is to show how to use the critical

section then the following code fragment adresses that:

//

// Global variable or a member of some

// dynamically allocated structure, usualy within

// the data access to which it is protecting.

//

CRITICAL_SECTION cs;

VOID Init(VOID) {

InitializeCriticalSection( &cs );

}

VOID SomeCall(VOID) {

EnterCriticalSection( &cs );

//

// Thread-safe block of code protected by critical

section.

//

LeaveCriticalSection( &cs );

}

VOID

UnInit(VOID) {

DeleteCriticalSection( &cs );

}

 144 views

11⟩ What are the reasons of rebooting the system?

the reasons for rebooting is

1) due to machine slow

2) for updating the service, some time service won't run

through local system , it will be run domianusername

3) for installing all updates & Patches

 148 views

13⟩ How to share printer through FTP(fire transfer protocol)?

We need to promote a server as File and Print server, make

sure the Print Spooler Service is running and set to RUN

Automatically. Install the printer on this server and share

the printer with some name as per your desire.

To make available this shared printerto user you have to

just find the printer in directory and double click on

printer, this will automatically install the printer.

Another simple method to install this shared printer just

type the name or IP of the File & Print server, this will

open a explorer window showing the shared printer, just

Double Click on printer Icon to install it.

 143 views