Technical Questions

Q:

What is process synchronization?

Answer

A situation, where several processes access and manipulate the same data concurrently and the outcome of the execution depends on the particular order in which the access takes place, is called race condition. To guard against the race condition we need to ensure that only one process at a time can be manipulating the same data. The technique we use for this is called process synchronization.

Report Error

View answer Workspace Report Error Discuss

1 1605
Q:

What is a data register and address register?

Answer

Data registers - can be assigned to a variety of functions by the programmer. They can be used with any machine instruction that performs operations on data.
Address registers - contain main memory addresses of data and instructions or they contain a portion of the address that is used in the calculation of the complete addresses.

Report Error

View answer Workspace Report Error Discuss

0 1605
Q:

How does the browser know to go to a certain IP address When you enter a domain like google.com?

Answer

When we enter a URL such as google.com then It searches through local DNS cache, if nothing is there, it queries the ISP's DNS server to resolve the URL.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 1596
Q:

What are the benefits of multithreaded programming?

Answer

 



  • Responsiveness

  • Resources sharing

  • Economy

  • Utilization of multiprocessor architectures.

Report Error

View answer Workspace Report Error Discuss

1 1592
Q:

What are system calls?

Answer

System calls provide the interface between a process and the operating system. System calls for modern Microsoft windows platforms are part of the win32 API, which is available for all the compilers written for Microsoft windows.

Report Error

View answer Workspace Report Error Discuss

1 1589
Q:

How would you eliminate the warning generated on complaining the following program?

main()

{

  char far *scr;

  scr = 0xB8000000;

  *scr = 'A';

}

Answer

Use the typecast scr = (char far *) 0xB8000000;

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 1588
Q:

What is the difference between Compiler and Interpreter?

Answer

An interpreter reads one instruction at a time and carries out the actions implied by that instruction. It does not perform any translation. But a compiler translates the entire instructions.

Report Error

View answer Workspace Report Error Discuss

1 1577
Q:

What is an idle thread?

Answer

The special thread a dispatcher will execute when no ready thread is found.

Report Error

View answer Workspace Report Error Discuss

1 1574