Binary arithmetic, Operating System

The principle is that of ordinary addition; however remember the highest number is 1.
 
Calculate the following:
 
                          11001 +
                          11010
 
Answer:
                            11001 +
                            11010
                            110011
 
Subtraction of binary is difficult, however uses 2 compliment it is easier.

Calculate the following:
 
                110011-
                11010
Answer:
 
Step One: Invert 11010 and add 1
 
        11010 -> 00101 + 1 = 00110
 
Step two: Replace -11010 with 00110 and add
 
            110011+
             00110
 
Step three: Remove msb         = 110012

Posted Date: 4/15/2013 5:19:07 AM | Location : United States







Related Discussions:- Binary arithmetic, Assignment Help, Ask Question on Binary arithmetic, Get Answer, Expert's Help, Binary arithmetic Discussions

Write discussion on Binary arithmetic
Your posts are moderated
Related Questions
Explain the Peterson's solution for the critical section problem? In Peterson's solution two variables a) flag and b) turn are used as shared variables. If the both shared vari

Q. What resources are utilized when a thread is created? How do they vary from those used when a process is created? Answer: For the reason that a thread is smaller than a pr

Explain the Request/Response Interface   Many issues are involved in providing a procedural interface for client functions to interact with server components. First off, since

Take the binary number and divide it into groups of 4 bits starting from the right hand side , if no group of 4 exists fill out leading 0's, then convert each group of 4 to a hex n

What does the last four digits '0010' of the above dump represent? What action will the Destination node takes when it receives this packet? The last four digits '0010' denotes

What are the typical elements of a process image? User data: Modifiable part of user space. May have program data, user stack area, and programs that might be modified. User

What is busy waiting? When strict alteration is done there may take place situation like two processes setting their flag as true. Therefore both of the processes have equal pr

Fault tolerance : Machine failures, Communication faults, storage device crashes, and decays of storage media must be tolerated by the system to some extent. A fault tolerant sy

Explain the ThreadSwitchWithDelay Function used in Netware ThreadSwitchWithDelay( )   This command is used when threads are waiting for an event or resource but don't want t

shell script that accepts two directory names as arguments and delete those file in the second directory that are identical to the file in the first