Technical Questions

Q:

What is cache-coherency?

Answer

In a multiprocessor system there exist several caches each may containing a copy of same variable A. Then a change in one cache should immediately be reflected in all other caches this process of maintaining the same value of a data in all the caches s called cache-coherency.

Report Error

View answer Workspace Report Error Discuss

1 1688
Q:

What will be output of following c code?

#include <stdio.h>
int main()

{
    int i;
    for(i=10;i<=15;i++){
         while(i){
             do{
                 printf("%d ",1);
                 if(i>1)
                      continue;
             }while(0);
             break;
         }
    }
    return 0;
}

Answer

Output: 1 1 1 1 1 1
For loop will execute six times.


 


 


 


Note: continue keyword in do-while loop bring the program its while condition (while(0)) which is always false.

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 1687
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 1687
Q:

What's the speed and device maximum specs for Firewire?

Answer

IEEE 1394 (Firewire) supports the maximum of 63 connected devices with speeds up to 400 Mbps.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 1684
Q:

What are the different types of Real-Time Scheduling?

Answer

Hard real-time systems required to complete a critical task within a guaranteed amount of time.
Soft real-time computing requires that critical processes receive priority over less fortunate ones.

Report Error

View answer Workspace Report Error Discuss

1 1676
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 1674
Q:

Give a circuit to divide frequency of clock cycle by two?

Answer

You can divide the frequency of a clock by just implementing T Flip flop.


Give clock as clock input and tie the T input to logic 1.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 1671
Q:

Different IP address on same network?

Answer

There are two IP address assigned to each device on a Wi-Fi network.


 


An Internal (Private) and an External (Public) IP address.


 


Internal IP address is used for communication between Your computer and a smartphone or whatever devices that are connected to that Wifi network. This is unique for each. If they are same the system cannot differentiate between each device.


 


While, the External IP address is that visible to the the internet - the websites, the internet connected Apps so on. By default, Routers with NAT (all routers today have it) assign same Public IP address to all devices under its network.

Report Error

View answer Workspace Report Error Discuss

9 1670