ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage   interview questions urls   External Links  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories >> Software >> Operating-Systems >> Windows >> Windows-Threads
 
 


 

Back to Questions Page
 
Question
WHAT IS A DAEMON?
Rank Answer Posted By  
 Question Submitted By :: Himabindu
This Interview Question Asked @   IBM
I also faced this Question!!   © ALL Interview .com
Answer
In UNIX, a program that runs in the background (not 
attached to a terminal) is called a "daemon." It's 
something you can't see, but it's alive and well doing work 
behind the scenes.
 
0
G_avadhut
 
 
Answer
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.
 
2
Abhijeet
 
 
Answer
daemon is a computer program that runs in the background, 
rather than under the direct control of a use
 
0
Vitthal Mankar
 
 
 
Question
semaphore variable is different from ordinary variable by ?
Rank Answer Posted By  
 Question Submitted By :: Tribhuvan Sharma
I also faced this Question!!   © ALL Interview .com
Answer
semaphore uses one thread .so it can access little slower 
than ordinary variable.
 
0
Suja
 
 
Answer
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!
 
0
Nirmalraj
 
 
Question
Which one is not needed for Multi-program enviornment?

1) virtual memory
2) security
3) time sharing
4) none of the above.
Rank Answer Posted By  
 Question Submitted By :: Tribhuvan Sharma
This Interview Question Asked @   Siemens
I also faced this Question!!   © ALL Interview .com
Answer
4.None of the above
 
0
Suja
 
 
Answer
3)time sharing
 
0
R.sathya
 
 
Answer
2)security
 
0
R.sudha
 
 
Answer
virtual memory
 
0
Sahadev Tarei
 
 
Answer
time sharing
 
0
Nagaraju
 
 
Question
Which one you will use to implement critical section?
Rank Answer Posted By  
 Question Submitted By :: Tribhuvan Sharma
This Interview Question Asked @   HCL
I also faced this Question!!   © ALL Interview .com
Answer
Critical Section comes in single process environment they
didn't share accross process boundary.

In C if you wish to implement criticalsection you have to
use windows datastructure CRITICAL_SECTION and create a
object to access its members.

Initialize it
  InitializeCriticalSection(&cs);
------------
-----------
function to call();
------------
DeleteCriticalSection(&cs);
.
.
call()
{
}
 
0
Nirmalraj
 
 
Answer
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 );
}
 
0
Svinto
 
 
Question
How to Kill a Particular Process in windows?
Rank Answer Posted By  
 Question Submitted By :: Suresh
This Interview Question Asked @   Tomax
I also faced this Question!!   © ALL Interview .com
Answer
Go to TaskManager,

Select Applications tab and select EndTask.
                   (or)
Select Process tab and select EndProcess.
 
3
Narendra Bandarupalli
 
 
Answer
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.
 
0
Kishore
 
 
Answer
using Debuggers we can kill with the command .kill
 
0
Geekcak
 
 
 
Back to Questions Page
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com