Windows Threads Interview Preparation Guide
Prepare comprehensively for your Windows Threads interview with our extensive list of 16 questions. Each question is crafted to challenge your understanding and proficiency in Windows Threads. Suitable for all skill levels, these questions are essential for effective preparation. Download the free PDF to have all 16 questions at your fingertips. This resource is designed to boost your confidence and ensure youre interview-ready.16 Windows Threads Questions and Answers:
1 :: What is the reason for getting the dialogue box( send this error to microsoft giving options as send to microsoft and dont send ) when we abort from the any work when it was struck?
Its used by microsoft to get feedback from the OS as to the cause of the program crash to fix bugs if any in a particular program or in the Windows OS itself
2 :: In window Xp which are the threads. Actually i wanna know if Ms word is a process which are the threads? Is spell check is a thread?
Threads do not actually have names...they just have a
handle...You can view the number of threads in a particular
process in task manager..goto view-->select columns--
>thread count
handle...You can view the number of threads in a particular
process in task manager..goto view-->select columns--
>thread count
3 :: 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.
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.
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!
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!
5 :: Which one is not needed for Multi-program environment?
1) virtual memory
2) security
3) time sharing
4) none of the above.
4.None of the above
2) security
3) time sharing
4) none of the above.
4.None of the above
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 );
}
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 );
}
7 :: How to Kill a Particular Process in windows?
U can kill a particular process in windows by pressing
Ctrl+Alt+Delete-->Click on Task Manager button-->and select
the program which one you want to kill and click on End
Task button.
Ctrl+Alt+Delete-->Click on Task Manager button-->and select
the program which one you want to kill and click on End
Task button.
8 :: When we browse internet system getting 500 error how will you solve the problem?
This error can only be resolved by fixes to the Web server software. It is not a client-side problem. It is up to the operators of the Web server site to locate and analyse the logs which should give further information about the error.
9 :: What is AD/AM in Windows2003?
Active Directory Application Mode
10 :: What is the impact if DNS Server fails?
If DNS server is fails your are not able to browse the
website and its showing server not found, and also its not
converted to domain name to ip address.
website and its showing server not found, and also its not
converted to domain name to ip address.