1.) What is a thread in terms of programs?
2.) What is a segmentation fault?
Printable View
1.) What is a thread in terms of programs?
2.) What is a segmentation fault?
a thread is a process. ie, your web browser is most likely running multiple threads. one thread is listening to window events, or for simplicity, waiting for a button (back, forward, close) to be clicked. while that's waiting, another thread is downloading web pages and displaying them for you.
a segmentation fault is when you try to access memory incorrectly or memory that doesn't exist.
A thread belongs to a process and is an independently executing series of instructions (meaning they run concurrently with any other threads in the same process and external processes).
A segmentation fault is...
[edit]
A thread is not a process. Generally speaking, a process is an executing program/application, while threads are children of processes.Quote:
Originally Posted by misplaced
Hello,
2) You can have a look at my signature or view this short document I wrote about it: Locating a Segmentation Fault
And/or, view this detailed CBoard article: Debugging Segmentation Faults. It explains the 4 common mistakes that can lead to a segfault.
Regards,
Stack Overflow
A good place to look-up computer/programming termonology is FOLDOC (Free On Line Dictionary Of Computing.)
Quote:
Originally Posted by LuckY
you mean, technically speaking
While I appreciate your attempt to inform me of my own thoughts, I said what I meant. Rather than providing a detailed description of all things involved in a computer process and how one is created/maintained by an operating system, I felt it would only be beneficial for our dear Krak to understand it's general definition. Besides, my definition is not what a process is in technical terms; I simply stated precisely what a process is.Quote:
Originally Posted by misplaced