Question

In: Computer Science

Computer Archieture 1. C Programming Language was developed in 1970’s, but why the classic 1980’s arcade...

Computer Archieture

1. C Programming Language was developed in 1970’s, but why the classic 1980’s arcade game “Donkey Kong” was still written in an assembly language?

2. One day, when Peter is copying some files from a USB flash disk to the hard disk of his PC, the power of the PC is suddenly cut off. Next time when he turns on the PC, its operating system starts to check the file index and the bitmap for consistency. Why the file index and the bitmap must be consistent?

3. Spanison, an America-based semiconductor company, has developed a voice processor for human-computer interaction. The processor uses custom-designed logic and high speed memory to process the voice signal from the human users. What kind of parallelism best describes this voice processor?

Solutions

Expert Solution

Answer of Q 1.

  • In computer system the video arcade games were introduced between year of 1970’s to 1980’s and during this many video games were developed like Donkey Kong, Defender, Pac Man etc.
  • All these games were hand coded in assembly language by assembly programmer.
  • As we know that the C language was developed in the year of 1970’s but it is not preferred for this game coding because of following reasons:
  1. Assembly language requires less mapping distance for execution than the C language.
  2. The translation time is faster in assembly language than the C language.
  3. Assembly language easily allows access to assembly instruction but in C language the compiler don't know about it.  
  4. Assembly language easily readable by the processor and C language easily readable by the human being.
  • Hence the speed of performance was quite good in assembly language as compared to C language.

Answer of Q 2.

  • To check the consistency of file index and bitmap two types of tables were used:
  1. Free block table
  2. Used block table

Following steps were performed during the block consistency checking:

  • In this checking type first step is to read all i-nodes and then increment counter of the used block.
  • In second step to reads the free block (bitmap) and then increment its corresponding counter in each free block.
  • Following figure a) and b) shows the functioning of it, as shown below:

  • Following steps were performed by file system after consistency check:
  1. Consistent: It means each block have 1 in either free or used blocks table.
  2. Block missing: If block does not appear in used table then it included in free block table.
  3. Block duplication: If block listed more than one then rebuild the free list
  4. Data block duplication: If same block is used by two files then allocates new block and copy the contents to new one.
  • In this way the file index and the bitmap must be consistent in file system.

Related Solutions

evolution of facility design in the 1930s-1940s evolution of design in the 1970's to 1980's facility...
evolution of facility design in the 1930s-1940s evolution of design in the 1970's to 1980's facility design **
C Programming Language (Code With C Programming Language) Problem Title : Which Pawn? Jojo is playing...
C Programming Language (Code With C Programming Language) Problem Title : Which Pawn? Jojo is playing chess himself to practice his abilities. The chess that Jojo played was N × N. When Jojo was practicing, Jojo suddenly saw a position on his chessboard that was so interesting that Jojo tried to put the pieces of Rook, Bishop and Knight in that position. Every time he put a piece, Jojo counts how many other pieces on the chessboard can be captured...
Scheme is a dialect of a programming language called Lisp, which was developed at MIT in...
Scheme is a dialect of a programming language called Lisp, which was developed at MIT in 1959. Alice 1.0 was released in 2006 from CMU, and Python in 1994. Based on what you know of the Scheme language, describe the major differences between how it works and how Alice or Python works. What advantages might Scheme have over Alice/Python? What advantages might Alice/Python have over Scheme?
C PROGRAMMING 1. Write a C Language inline function that computes the cube of float X,...
C PROGRAMMING 1. Write a C Language inline function that computes the cube of float X, if X is greater than 1 and X is less than 100. Put the inline function in a main program that reads X from the keyboard, calls the function, and then outputs the result. 2. Show an empty statement and detail what it does? 3. A collection of predefined functions is called a Database                    C) Subroutine                       E) None of these Library                       D) Directive 4....
Lab 1 Write a program in the C/C++ programming language to input and add two fractions...
Lab 1 Write a program in the C/C++ programming language to input and add two fractions each represented as a numerator and denominator. Do not use classes or structures. Print your result (which is also represented as a numerator/denominator) to standard out. If you get done early, try to simplify your result with the least common denominator. The following equation can be used to add fractions: a/b + c/d = (a*d + b*c)/(b*d) Example: 1/2 + 1/4 = ( 1(4)...
1970’s 1980’s 1990’s 97 105 78 105 108 87 109 106 90 87 114 87 96...
1970’s 1980’s 1990’s 97 105 78 105 108 87 109 106 90 87 114 87 96 111 113 102 111 90 102 115 99 114 114 97 118 102 108 113 123 92 This table uses the data file that contains the scores of the winning teams from the final NBA Championship game. I would like to know if the average winning score is the same for each decade listed in the table. Test the claim that the samples all...
GPA calculator in C language To understand the value of records in a programming language, write...
GPA calculator in C language To understand the value of records in a programming language, write a small program in a C-based language that uses an array of structs that store student information, including name, age, GPA as a float, and grade level as a string (e.g., “freshmen,” etc.). Note:Code and Output Screenshots
C# Programming Language Write a C# program ( Console or GUI ) that prompts the user...
C# Programming Language Write a C# program ( Console or GUI ) that prompts the user to enter the three examinations ( test 1, test 2, and test 3), homework, and final project grades then calculate and display the overall grade along with a message, using the selection structure (if/else). The message is based on the following criteria: “Excellent” if the overall grade is 90 or more. “Good” if the overall grade is between 80 and 90 ( not including...
Programming in C language (not C++) Write a runction derinition for a function called SmallNumbers that...
Programming in C language (not C++) Write a runction derinition for a function called SmallNumbers that will use a while loop. The function will prompt the user to enter integers ine by one, until the user enters a negative value to stop. The function will display any integer that is less than 25. Declare and initialize any variables needed. The function takes no arguments and has a void return type.
In C programming language, write the program "3x3" in size, calculating the matrix "c = a...
In C programming language, write the program "3x3" in size, calculating the matrix "c = a * b" by reading the a and b matrices from the outside and writing on the screen?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT