3/30/2008
3/22/2008
3/11/2008
Linux assembly programming
ref
you can use
$gcc -S test.c
to compile c code to assembly code(might be at&t style)
then will transform into test.s file
$as test.s
can compile test.s to machine code for execution
you can use
$gcc -S test.c
to compile c code to assembly code(might be at&t style)
then will transform into test.s file
$as test.s
can compile test.s to machine code for execution
3/10/2008
3/09/2008
3/07/2008
evolution of OS and Computer Generation
Generations:
- 1945 ~ 1955: Vacuum Tube, Plug boards
- 1955 ~ 1965: transistors
the primitive concept of OS appeared, known as Batch System
actually, the concept of batch system originally are from the assembly line
and was first implemented to punched card systemthen came to the
popular command line interface today on workstations, but the difference
is that only one process, one shell running, tasks must be done
one after another(batch) - 1965 ~ 1980: ICs
since the complexity of computing is rising ICs became more and
more popular after it's creation
the concept of OS, has evolved almost completely at this stage:
batch -> Multiprogramming -> Time Sharing
Multiprogramming:- on Batch system, we can only do one thing at a time, then people
came to think about the possibility to do several things altogether
the concept of scheduling appeared.
we create several processes and use scheduler take turns
to running each of them. Since the CPU is so fast that it seems
that they are running concurrently.
- the evolution is the appearance of Round-Robin algorithm
in the past, processes are non-preemptive(cannot be interrupt)
so once u encounter a long job, user will be hanging. Round-Robin
introduce the concept of Time Quantum. once Quantum
expired, contex switch
- on Batch system, we can only do one thing at a time, then people
- 1980 ~ present: PC
at this time Main Frame computer being replaced by Personal Computer
the concept of Operating System are the same but the resources are
different
eg. in the past, Main Frame Computer can assign special resource like
graphic card to some special user
Edsger W. Dijkstra
ref
- The title of his 1972 book Structured Programming, coauthored with C.A.R. Hoare, became the term used to describe a major style of programming in computer software.
- He was also known for his low opinion of the GOTO statement in computer programming, writing a paper in 1965, and culminating in the 1968 article "A Case against the GO TO Statement"
3/06/2008
image viewer
comix is good to view comic books
ref
"comix, cbrpager, or evince. evince only got cbz
support as of Feisty Fawn." by stylishpants
mirage is a fast light image viewer
gthumb is good to browse sets of images
ref
"comix, cbrpager, or evince. evince only got cbz
support as of Feisty Fawn." by stylishpants
mirage is a fast light image viewer
gthumb is good to browse sets of images
3/05/2008
3/03/2008
Mutex and Semaphore
concep ref
implementation ref1
so mutex is more efficient, in other words, it takes less overhead!
and there's sth about semaphore ref
implementation ref1
so mutex is more efficient, in other words, it takes less overhead!
and there's sth about semaphore ref
semaphores
A semaphore is a special counter. It has an initial value and two
operations, P and V, for changing that value. (P and V are
initials for words in Dutch; think of them as Pause and something
else [Voice maybe?]). A semaphore keeps track of the difference
between the number of P and V operations that have occurred. A P
operation is delayed (the process is de-scheduled) until #P-#V <=
C, the initial value of the semaphore.
3/02/2008
mic and speaker
gnome-volume-control // for gnome session
or
alsamixer // command line
use "left right key" to choose from different options and up and down to control the magnitude
"m" to turn on/off
"Tab" to change different pages of setting
ref
or
alsamixer // command line
use "left right key" to choose from different options and up and down to control the magnitude
"m" to turn on/off
"Tab" to change different pages of setting
ref
3/01/2008
RHET 105
1. representing readings
learned rhetoric triangle: rhetor(author, eyerman),
text(subject) and audience. we need to think about this
relationship while reading or writing
from Consumer's gazes, there's three rhetorical
practices:
Logos: logical argument, appeal to reason
Ethos: ethical argument, appeal to rhetor's ethical character
Pathos: emotional argument, appeal to audiences' emotions
the point is to sell their ideas!
2. representing your world
the example of making a map, told us that the world are
representing in the way the maker wants it to be.
from Familial Gazes toward photographs, we know
that beyond description, interpretation is also important
and the interpretation will change over time.
we also looked through some photos using
Documentary Gazes and found out that the world are
documented in the way the documentarians want it to be.
what is truth? truth are hided behind different aspects
and you have to discover it by yourself. :P
3. Film Analysis
Subscribe to:
Posts (Atom)