1/49
Looks like no tags are added yet.
Where are statics stored?
BSS for unitialized or zero initialized, else data
Given a statement with freopen, what does it do and what are the arguments?
Redirects an existing stream to a file. filename, mode, and stream.
Which statement is NOT true about fork?
the child has the same PID, fork creates two children, the child shares the parent's memory, fork returns 0 to the parent
Does fork return true or false?
0 = false, else true
Which statement is NOT true about pipes?
works across a network, two-way communication
When setting up an Internet socket, what does SOCK_STREAM indicate?
TCP protocol
What does each thread have unique to itself?
Stack, registers, PC, stack pointer, and thread ID
Which statement is NOT true about threads?
each thread has its own heap, each thread gets a new PID