- If an operating system is ported to a new hardware platform,
which major component is most likely to need significant change?
__________________________________________________________________
Why? ______________________________________________________________
- When NTFS was added to Windows NT, what component of the
operating system needed to be rewritten?
_______________________________________________
- To add a new I/O type (e.g. the next USB), what component of
the operating system needs to be change?
________________________________________
- In a simple embedded system (e.g. automobile) with no hard drive,
which two of the main four operating system components is quite simplified
and why?
Component:_______________________________Why:_____________________________
Component:_______________________________Why:_____________________________
- We have a "C" program called loop.c. The following files exist.
The first number is the file size. The date/time is when it was
last updated.
12629 May 18 22:51 loop
786 May 22 09:08 loop.c
1384 May 18 22:51 loop.o
What can you say about the history of changes to this
program based on the time stamps?
_________________________________________________
_________________________________________________
- Now, if these are the time stamps,
13233 May 22 09:09 loop
786 May 22 09:08 loop.c
1543 May 22 09:09 loop.o
What can you say about the history of changes to this
program based on the time stamps?
_________________________________________________
_________________________________________________
- For a java program, consider these files:
-rw-r--r-- 1 earl users 911 2007-06-06 11:52 nano.class
-rw-r--r-- 1 earl users 514 2007-06-01 08:07 nano.java
What can you say about the history of changes to this
program based on the time stamps?
_________________________________________________
_________________________________________________
- A program we will use in a lab later in the course has
both a LINUX and a Windows version. The executable sizes are:
- Windows: 49152
- LINUX: 11962
The "C" source is the same in both cases. What could account
for the difference? Hint: The difference is not "caused" by the
operating system, but by something we have learned about. Other programs
might be smaller in Windows.
________________________________________________________
________________________________________________________
________________________________________________________
- Would you expect the object file sizes to be much different in
LINUX and Windows? Why?
_________________________________________
- In lab, we will use a compiler called "g++", the GNU open
source C++ compiler. For these commands, write the
main INPUT file and OUTPUT file (don't consider the listing files
or libraries).
INPUT (filename) Command OUTPUT (filename)
_____________ g++ -c P1.c __________________________
_____________ g++ P1.o __________________________
_____________ g++ -o P1 P1.o __________________________
_____________ g++ P1.c __________________________
- Mark the portability of the following files between LINUX,
Solaris UNIX or Windows. Portable means the file can be
processed (compiled or linked) without any changes.
Mark either: (U)nchanged, (P)orted - needs modest changes,
or X for cannot be used at all on another system.
- ___ prog1.java
- ___ prog2.c
- ___ prog2.o
- ___ prog2.exe
- ___ prog1.class (Java byte code)
- Which of the following are "executables"? Mark X for the ones which are.
- ___ prog2.exe
- ___ javac (in LINUX)
- ___ WORD.EXE
- ___ file10.o
- ___ prog1.java
- ___ prog2.c
- ___ The java virtual machine (run with the java command in LINUX)
- In C:\WINDOWS\SYSTEM32, we see several DLL's with what seems to
be a vendor name. What might these be?
___________________________________________
- If 4 programs are running in LINUX, all of which use
libcrypt.so, how many copies of libcrypt.so
are loaded into memory? _________