Name: Login ID: Code:
Systems Foundational
May 7, 1997
You must answer all questions in the Computer Organization section. You must also answer questions in two of the remaining four areas. Do not write any answers on this paper. Only mark your name and code on this paper. Write all your answers on the blank paper provided to you. Only use one side of each sheet of paper. Write your code at the top of each sheet of paper. Do not write your name on your answer sheets.
Consider these three alternatives for implementing a jump instruction:
signed two's
complement arithmetic is used and
is sign-extended to 32
bits.
is the general purpose register determined by the
register field, signed two's complement arithmetic is used, and
is sign-extended to 32 bits.
QUESTION: In each case, what portion of the address space is accessible?
Assume typical values for the seek delay, throughput rate, and instruction cycle time.
#define SIZE 10
char buff[SIZE];
main () {
create(process1);
create(process2);
}
process1() { process2() {
int i=0; int i=0;
while (1) { while (1) {
buff[i] = getchar(); printf("%c", buff[i]);
i = (i+1) % SIZE; i = (i+1) % SIZE;
} }
} }
There are the following functional dependencies:
Customers (Id, Name, State, Phone)
Orders (Order-#, Id, Item, Quantity)
Stock (Item, Desc, Price, On-Hand)
Vendor (Vendor_Id, Item, Cost, State)
Transform the following into any commercial query language
such as SQL, QBE, or Quel: