What's the difference between process and thread? What kind of information does thread maintain? its own stack? heap?
process is a execution of a program and process contains data segment, code segment, heap and stack but thread is a single sequence stream within the process. Threads can share memory space of defferent threads belonging to the same process, process cannot. Thread maintains own stack, shares heap with others
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment