Computer architecture problem solving.

AI Thread Summary
A computer not loading the operating system into RAM may indicate issues such as hardware failure or software corruption. The CPU multiplies numbers by first reading them into registers, executing the multiplication instruction, and then copying the result back to memory. For finding the smallest of three numbers, a flowchart can be created by comparing the numbers with decision boxes to determine the minimum. The discussion highlights the disconnect between the homework problems and the chemistry course content, suggesting a need for more relevant questions. Overall, participants seek clarity on computer architecture concepts while expressing frustration over the course's lack of resources.
FlipStyle1308
Messages
264
Reaction score
0

Homework Statement



1. A man bought a computer and when he booted it up he realized that the OS is not loading into RAM. Can you suggest what could be wrong with the computer? (Yes, the computer was plugged into the outlet and the power was turned on.)

2. Describe the process by which the CPU multiples 2 by 5, assuming that numbers are stored in cache.

3. Draw a flow chart for finding the smallest of the 3 given numbers using standard flow chart symbols.

Homework Equations



N/A

The Attempt at a Solution



1. OS is corrupted and needs to be reloaded.
2. I believe an algorithm is used but I do not know how to word my answer.
3. I know the symbols, but I just need help setting the whole thing up.
 
Physics news on Phys.org
You need to break things down into much smaller steps (actualy that pretty much sumarises engineering!)
1, What are the steps for getting the OS into ram, where isit from, what is involved?

2, Imagine the CPU as a factory with little workers in it (the oompa-lumpa model), what are the steps to get the data in, where does itgo, what has to happen next, where does the answer go

3, Don't worry about the symbols initially, how would you work out the sum on paper? Now write down every step, now convert to symbols (should probably just be a loop with a couple of 'ifs')
 
mgb_phys said:
You need to break things down into much smaller steps (actualy that pretty much sumarises engineering!)
1, What are the steps for getting the OS into ram, where isit from, what is involved?

2, Imagine the CPU as a factory with little workers in it (the oompa-lumpa model), what are the steps to get the data in, where does itgo, what has to happen next, where does the answer go

3, Don't worry about the symbols initially, how would you work out the sum on paper? Now write down every step, now convert to symbols (should probably just be a loop with a couple of 'ifs')

To be honest for the first two hints you have given me, I have no idea where to begin. :confused: My class is actually a chemistry computer class, and my instructor just gave us a problem set, and there is no section of the notes to reference to when attempting these problems, and we do not have a textbook or manual for this course. All I have are lecture slides to work with, and these concepts have not been discussed. I really would like to attempt to solve the problem, so I was wondering if there is any other way you can help my solve this. Thanks.
 
. A man bought a computer and when he booted it up he realized that the OS is not loading into RAM. Can you suggest what could be wrong with the computer?
The machine has to
1, Find the disk drive
2, Load the boot sector code that tells it how to read a disk
3, Read the disk and find the operating system
4, Load the operating system into ram
5, Execute the program in ram

Describe the process by which the CPU multiples 2 by 5, assuming that numbers are stored in cache.
1, You have to read the numbers 2 and 5 into the cpu (google for "register" )
2, execute the multiply instruction
3, copy the answer back to memory
 
If this is a chemistry computer course, those questions are somewhat out of line. 1) has any number of solutions falling under the general headings of i) hardware failure and ii) software corruption (as mgb_phys and you have suggested). 2) multiplication is generally implemented in hardware as a shift-and-add process. Assuming you know how to add. Which is not necessarily trivial either considering signs and carries. 3) is the only one that might actually be relevant if you want to design your own algorithms. Label the three numbers as n1, n2 and n3. Start with a box that says "n1>n2?" with two outgoing lines labeled "yes" and "no". Connect those to other boxes asking questions about the numbers and make sure each branch when followed to the end yields the minimum. Now hope the next set of questions is more related to computers in chemistry.
 
Thank you for all of your help! Yes, I hope the next set or problems actually relates to chemistry lol.
 
Back
Top