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...
“Computer programming is creating a sequence of very precise instructions written in a language a computer...
“Computer programming is creating a sequence of very precise instructions written in a language a computer understands, to perform a specified task with a computer.” Discuss in detail the concept of extreme precision in computer programming.
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?
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...
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)...
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
in the c programming language input is given in the form The input will be of...
in the c programming language input is given in the form The input will be of the form [number of terms] [coefficient k] [exponent k] … [coefficient 1] [exponent 1] eg. 5 ─3 7 824 5 ─7 3 1 2 9 0 in this there are 5 terms with -3x^7 being the highest /* Initialize all coefficients and exponents of the polynomial to zero. */ void init_polynom( int coeff[ ], int exp[ ] ) { /* ADD YOUR CODE HERE...
Assembly Language Programming Construct an assembly language program fragment equivalent to the following C/C++ statement: if...
Assembly Language Programming Construct an assembly language program fragment equivalent to the following C/C++ statement: if (M <= N + 3 && (C == ‘N’ || C == ‘n’)) C = ‘0’; else C = ‘1’; Assume that M and N are 32-bit signed integer variables, and C is an 8-bit ASCII character variable. All variables are stored in memory, and all general-purpose registers are available for use.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT