Explain the difference between a computer process and thread
Explain the difference between a computer process and thread.
Expert
A single process can consist multiple of threads which share global data and address space with other threads running within the same process, and thus can operate on similar data set simply. Processes do not share address space and a various mechanism must be used when they are to share data.
When we consider running a word processing program to be a process, there then the auto-save and spell check features which occur in the background are various threads of that process that are all operating on similar data set (your document).
1. Here is a short program. It prints out the value of a variable "x". Ernie and Bert disagree about what will be printed: Ernie says, the value gets changed in "changeX" so it will print "7", and Bert says, no, when the function exits the changes get reversed and the value goes back to "5". Explain
State the term Win32. Answer: Win32 considers to Microsoft 32 bit Windows API. Applications of Win32 are programs that are built along with the Win32 API.
Define the term Method signature: This is the synonym for method header.
Variable: It is the memory block of specific size where value can be stored and modified throughout program execution. Example: int x, float y, float amount, char c;
Limit the Use of Pre-processor Directives: The C pre-processor is powerful, but unrestricted use of it can lead to code that is hard to understand and analyze. Limit its use to inclusion of header files and simple macro definitions. Avoid features suc
Classpath: The path searched by interpreter and compiler for class definitions. The class path might be set by a command-line argument to either, or through an environment variable.
Who is liable for XML?
Anonymous array: It is an array formed without an identifier. The anonymous array is generally formed as an actual argument, for example:// generate an anonymous array of integers. YearlyRainfall y2k = new YearlyRai
Method overloading: Two or more techniques with similar name stated within a class are said to be overloaded. This exerts to both constructors and other methods. The overloading applies via a class hierarchy, thus a sub class may overload a method sta
Explain the COM components?
18,76,764
1925351 Asked
3,689
Active Tutors
1441635
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!