Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / May 2007

Tip: Looking for answers? Try searching our database.

Difference between process and threat?

Thread view: 
Jack Dowson - 02 May 2007 17:14 GMT
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!
Andrew Thompson - 02 May 2007 17:47 GMT
...
>    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

Signature

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

Jack Dowson - 02 May 2007 18:04 GMT
Thank you very much!

Andrew Thompson 写道:
> ..
>>     I'm new to java!
>
> Please don't post 'tabs' to usenet.
why?
Sherm Pendley - 02 May 2007 18:19 GMT
> 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--

Signature

Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net

Jack Dowson - 02 May 2007 18:27 GMT
Sherm Pendley 写道:

>> Andrew Thompson 写道:
>>> Please don't post 'tabs' to usenet.
[quoted text clipped - 7 lines]
>
> sherm--

Thank you!
Gordon Beaton - 03 May 2007 08:01 GMT
>> Andrew Thompson ŽÊ“¹:
>>>
[quoted text clipped - 4 lines]
> 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

--
Stefan Ram - 02 May 2007 23:01 GMT
>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.
Daniel Pitts - 03 May 2007 02:45 GMT
> >I want to know the difference between process and threat?
>
[quoted text clipped - 10 lines]
>   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. :-)
Christian - 03 May 2007 00:55 GMT
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.