ECEN 224 Flashcards
what is big eddian vs little eddian
big eddian has the most significant digits first
what are the standard C datatypes
char 1 byte
int 4 byte
short 2 byte
long 8 bytes
float 4 bytes
double 8 bytes
what are the values of 0,NAN, infinity, and denormalized in IEEE
expo mantissa value
0 0 exact 0
255 0 Infinity
0 not 0 denormalised
255 not 0 Not a number (NAN)
how long is the exponent in IEE 32 bit na 64
8 & 11
what does gcc stand for
GNU compiler collection
%d
digit
%c
character type
%f
float type
%o
octal representation
%s
string
%u
unsigned int
what does pwd do in the terminal
shows current directory path
what does cat do in the terminal
Concatenate and print, displays contents of a file printed in the terminal
what does chmod do in the terminal
changes permissions on the can read write and execute the file, in that order
When to use standard I/O
When working with disk files or terminal characters
* When buffering is advantageous (transferring small sizes)
Binary semaphore:
semaphore whose value is always 0 or 1
Mutex
binary semaphore used for mutual exclusion
* wait operation: “locking” the mutex
* post operation: “unlocking” or “releasing” the mutex
* “Holding” a mutex: locked and not yet unlocked
Counting semaphore
used as a counter for set of available resources
range of ephemeral ports
49152–65535
Ephemeral port:
Assigned automatically by client kernel when client makes a connection
request.
Well-known port:
Associated with some service provided by a server
connections.
communication sending streams of bytes over it
what are the bias amounts for IEEE
127 and 1023