Hi everyone, I've got a few OS/memory questions:
When you write a program, lets say in C, how is memory allocated for variables, functions, callocs/mallocs?
What are the main differences between the stack and the heap?
Also, when you have multiple threads, all have access to the same memory, is this accomplished by just sharing pointers?

I have searched around for a concise answer, but AO is always a better resource for no BS info.