http://www.lowtek.com/sockets/select.html One traditional way to write network servers is to have the main server block on accept(), waiting for a connection. Once a connection comes in, the server fork()s, the child process handles the connection and the main server is able to service new incoming requests. With select(), instead of having a process for each [...]
Archive for February, 2011
select
Posted in Tech on February 28, 2011 | Leave a Comment »
Caller-save registers and callee-save registers
Posted in Tech on February 23, 2011 | Leave a Comment »
http://ozark.hendrix.edu/~burch/cs/230/cso/ch13-sub/index.html Assembly programmers divide the registers into caller-save registers and callee-save registers. Caller-save registers are those that the subroutine may change, such as R0 through R3 in the ARM convention described above: They are caller-save because since a caller of a subroutine must save the registers’ values if it wants the values after the subroutine completes. Callee-save registers are those that [...]
gnome-terminal + ssh + command
Posted in Tech on February 15, 2011 | Leave a Comment »
gnome-terminal -e “ssh -t username@remote_machine ‘command; bash -l’”