Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Difference between process and threat?

Reply
Thread Tools

Difference between process and threat?

 
 
Jack Dowson
Guest
Posts: n/a
 
      05-02-2007
Hello EveryBody:
I'm new to java!I'm now learning the multithreats of java!
I want to know the difference between process and threat?
Considering I'm a rookie,please don't interpret too abstract,it will be
better if examples or common analogies including in your explanation!
Any reply will be greatly appreciated!
 
Reply With Quote
 
 
 
 
Andrew Thompson
Guest
Posts: n/a
 
      05-02-2007
Jack Dowson wrote:
...
> I'm new to java!


Please don't post 'tabs' to usenet.

>...I'm now learning the multithreats of java!
> I want to know the difference between process and threat?


<http://www.google.com/search?q=define+threat>
<http://www.google.com/search?q=define+thread>
(subtle but important distinction in spelling)

As to the question, I see relevant links within the top 5
<http://www.google.com/search?q=computer+thread+process>

HTH

--
Andrew Thompson
http://www.athompson.info/andrew/

Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.asp...neral/200705/1

 
Reply With Quote
 
 
 
 
Jack Dowson
Guest
Posts: n/a
 
      05-02-2007
Thank you very much!

Andrew Thompson 写道:
> Jack Dowson wrote:
> ..
>> I'm new to java!

>
> Please don't post 'tabs' to usenet.

why?

 
Reply With Quote
 
Sherm Pendley
Guest
Posts: n/a
 
      05-02-2007
Jack Dowson <> writes:

> Andrew Thompson ʓ:
>>
>> Please don't post 'tabs' to usenet.

> why?


It screws up indentation royally. If you use four chars per tab, someone
who uses another number will have a difficult time reading your code.

Spaces are no more difficult to use - most programmer's editors can be
set to "auto expand" tabs to spaces.

sherm--

--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net
 
Reply With Quote
 
Jack Dowson
Guest
Posts: n/a
 
      05-02-2007
Sherm Pendley ʓ:
> Jack Dowson <> writes:
>
>> Andrew Thompson ʓ:
>>> Please don't post 'tabs' to usenet.

>> why?

>
> It screws up indentation royally. If you use four chars per tab, someone
> who uses another number will have a difficult time reading your code.
>
> Spaces are no more difficult to use - most programmer's editors can be
> set to "auto expand" tabs to spaces.
>
> sherm--
>

Thank you!
 
Reply With Quote
 
Stefan Ram
Guest
Posts: n/a
 
      05-02-2007
Jack Dowson <> writes:
>I want to know the difference between process and threat?


Numbers have a difference, e.g., the difference between 4 and 2 is 2.

Notions, in general, do not have a specific difference.

What is the difference between the moon and the statue of liberty?

When this question is posed, educated persons asked might give
no answer or they might give an answer, but this in general
will depend on the person answering. So there is no specific
objective answer that is a function/property of the two
notions only and independent of the person answering this
question.

 
Reply With Quote
 
Christian
Guest
Posts: n/a
 
      05-02-2007
Jack Dowson schrieb:
> Hello EveryBody:
> I'm new to java!I'm now learning the multithreats of java!
> I want to know the difference between process and threat?
> Considering I'm a rookie,please don't interpret too abstract,it will be
> better if examples or common analogies including in your explanation!
> Any reply will be greatly appreciated!


A Process may contain several threads and has its own Memory.
A process is what you usually know as a running program

A Thread does not have its own Memory..so Threads can interact by
accessing some Objects availabel to both.
A Thread is hmm a path of execution.


Example..

If you start a javaprogram this programm is a process.
the program is protected from other programs as it has an isolated
address space (other programs can't change or read your variables...)

The jvm will spawn one Thread to run your main() method.
at the same time it will spawn another Thread .. the Garbage
Collector... that will help you managing your Memory.

hope that helps
Christian


 
Reply With Quote
 
Daniel Pitts
Guest
Posts: n/a
 
      05-03-2007
On May 2, 3:01 pm, r...@zedat.fu-berlin.de (Stefan Ram) wrote:
> Jack Dowson <jckd...@aol.com> writes:
> >I want to know the difference between process and threat?

>
> Numbers have a difference, e.g., the difference between 4 and 2 is 2.
>
> Notions, in general, do not have a specific difference.
>
> What is the difference between the moon and the statue of liberty?
>
> When this question is posed, educated persons asked might give
> no answer or they might give an answer, but this in general
> will depend on the person answering. So there is no specific
> objective answer that is a function/property of the two
> notions only and independent of the person answering this
> question.


I would have said:
A process is the way something gets done, and a Threat is what my wife
gives me if I'm out to late.

 
Reply With Quote
 
Gordon Beaton
Guest
Posts: n/a
 
      05-03-2007
On Wed, 02 May 2007 13:19:55 -0400, Sherm Pendley wrote:
> Jack Dowson <> writes:
>
>> Andrew Thompson ʓ:
>>>
>>> Please don't post 'tabs' to usenet.

>> why?

>
> It screws up indentation royally. If you use four chars per tab,
> someone who uses another number will have a difficult time reading
> your code.


What code did the OP post? Did anyone have any trouble reading his
text?

/gordon

--
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FAQ 7.17 What's the difference between dynamic and lexical (static) scoping? Between local() and my()? PerlFAQ Server Perl Misc 0 04-15-2011 04:00 AM
FAQ 7.17 What's the difference between dynamic and lexical (static) scoping? Between local() and my()? PerlFAQ Server Perl Misc 0 01-06-2011 05:00 PM
Difference between two process Mad I.D. VHDL 4 07-26-2009 12:42 PM
Difference between bin and obj directories and difference between project references and dll references jakk ASP .Net 4 03-22-2005 09:23 PM
Exact difference between 'const char *' and 'char *', also diff between 'const' and 'static' Santa C Programming 1 07-17-2003 02:10 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57