1.) What is a thread in terms of programs?
2.) What is a segmentation fault?
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.
i seem to have GCC 3.3.4
But how do i start it?
I dont have a menu for it or anything.
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.Originally Posted by misplaced
Last edited by LuckY; 07-07-2005 at 12:51 PM.
Originally Posted by LuckY
you mean, technically speaking
i seem to have GCC 3.3.4
But how do i start it?
I dont have a menu for it or anything.
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.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
Segmentation Fault: I am an error in which a running program attempts to access memory not allocated to it and core dumps with a segmentation violation error. This is often caused by improper usage of pointers, attempts to access a non-existent or read-only physical memory address, re-use of memory if freed within the same scope, de-referencing a null pointer, or (in C) inadvertently using a non-pointer variable as a pointer.
A good place to look-up computer/programming termonology is FOLDOC (Free On Line Dictionary Of Computing.)
Join is in our Unofficial Cprog IRC channel
Server: irc.phoenixradio.org
Channel: #Tech
Team Cprog Folding@Home: Team #43476
Download it Here
Detailed Stats Here
More Detailed Stats
52 Members so far, are YOU a member?
Current team score: 1223226 (ranked 374 of 45152)
The CBoard team is doing better than 99.16% of the other teams
Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)
Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT