Technical Questions

Q:

What is a deadlock?

Answer

Deadlock is a situation where a group of processes are all blocked and none of them can become unblocked until one of the other becomes unblocked. The simplest deadlock is two processes each of which is waiting for a message from the other.

Report Error

View answer Workspace Report Error Discuss

1 1622
Q:

What are java threads?

Answer

Java is one of the small number of languages that support at the language level for the creation and management of threads. However, because threads are managed by the java virtual machine (JVM), not by a user-level library or kernel, it is difficult to classify Java threads as either user- or kernel-level.

Report Error

View answer Workspace Report Error Discuss

1 1619
Q:

What is virtual memory?

Answer

Virtual memory is hardware technique where the system appears to have more memory that it actually does. This is done by time-sharing, the physical memory and storage parts of the memory one disk when they are not actively being used.

Report Error

View answer Workspace Report Error Discuss

0 1619
Q:

Write a c program to check whether a number is strong or not.

Answer

#include<stdio.h>
int main(){
  int num,i,f,r,sum=0,temp;

  printf("Enter a number: ");
  scanf("%d",&num);
 
  temp=num;
  while(num){
      i=1,f=1;
      r=num%10;

      while(i<=r){
         f=f*i;
        i++;
      }
      sum=sum+f;
      num=num/10;
  }
  if(sum==temp)
      printf("%d is a strong number",temp);
  else
      printf("%d is not a strong number",temp);

  return 0;
}

Sample output:
Enter a number: 145
145 is a strong number

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 1616
Q:

what are the various flags used in 8085?

Answer

Sign flag, Zero flag, Auxillary flag, Parity flag, Carry flag.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 1616
Q:

What is a ready queue?

Answer

The processes that are residing in the main memory and are ready and waiting to execute are kept on a list called the ready queue.

Report Error

View answer Workspace Report Error Discuss

0 1615
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 1614
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 1613