Technical Questions

Q:

What is a binary semaphore?

Answer

A binary semaphore is one, which takes only 0 and 1 as values. They are used to implement mutual exclusion and synchronize concurrent processes.


 

Report Error

View answer Workspace Report Error Discuss

0 1950
Q:

Which is the Stack used in 8085?

Answer

LIFO (Last In First Out) stack is used in 8085. in this type of Stack the last stored information can be retrieved first.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 1947
Q:

What are the different functions of Scheduler?

Answer

Scheduler deals with the problem of deciding which of the process in the ready queue is to be allocated the CPU. Short Term Schedulers, Long Term Schedulers

Report Error

View answer Workspace Report Error Discuss

1 1946
Q:

Explain compiler?

Answer

compiler is used to translate the high-level language program into machine code at a time. It doesn't require special instruction to store in a memory, it stores automatically. the execution time is less compared interpreter.


A compiler is a program that translates a source program written in some high-level programming langualge (such as Java) into machine code for some computer architecture (such as the Inter Pentium archiecture).

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 1946
Q:

Why we use do-while loop in c?

Answer

It is also called as post tested loop. It is used when it is necessary to execute the loop at least one time. Syntax:

do {
Loop body
} while (Expression);

Example:

int main(){
    int num,i=0;  
    do{
         printf("To enter press 1\n");
         printf("To exit press  2");
         scanf("%d",&num);
         ++i;
         switch(num){
             case 1:printf("You are welcome\n");break;
             default : exit(0);
         }
    }
    while(i<=10);
    return 0;
}

Output: 3 3 4 4

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 1941
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 1941
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 1937
Q:

Define HCMOS?

Answer

High-density n-type Complimentary Metal Oxide Silicon field effect transistor.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 1935