Answers For Great .Net Developer (1)
What Great .NET Developers Ought To Know
- Everyone who writes code
• Describe the difference between a Thread and a Process?
A Process is a collection of threads sharing same virtual memory.
A Thread always runs in a thread context. While a process must have at least one thread.
• What is a Windows Service and how does its lifecycle differ from a "standard" EXE?
Window service can automatically start when system starts.
Standard exe has to been activated manually by user.
• What is the maximum amount of memory any single process on Windows can address? Is this different than the maximum virtual memory for the system? How would this affect a system design?
Maximum virtual memory of 32 bit is 2 ^32=4 GB(0-2GB, available for application, 2GB-4GB available for system)
• What is the difference between an EXE and a DLL?
EXE file is an executable file including entry point to start (like main () in C/C++, static void main() in .Net)
o DLL is library file including some functions to be called by other components.
• What is strong-typing versus weak-typing? Which is preferred? Why?
String-typing means the data type checking of class or data type conversion is done in compile time while that of weak-typing is done in running time.
o It depends on what kind of projects. For Script quick stuff, using weak-typing(later binding , interpreted language).For compiled based language, using string-typing.
• Corillian's product is a "Component Container." Name at least 3 component containers that ship now with the Windows Server Family.
Web forms and window forms are visual component container including :
System.Web.UI.Page
System.Windows.Forms.Form
System.ComponentModel.Container
• What is a PID? How is it useful when troubleshooting a system?
Process identifier, can use it to kill the process in task manager of system.
• How many processes can listen on a single TCP/IP port?
One.
• What is the GAC? What problem does it solve?
Global assembly cache.
Problems solved :
DLL Hell
Multiple Version
Security
0 Comments:
Post a Comment
<< Home