473,394 Members | 1,737 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Stability of Threads

I am a newbie Java programmer and am just learning about threads. A
colleague if mine once told me that 'threads were unsafe'. I didn't
bother to ask him why because at the time I didn't know what threads
were! Do threads in Java pose any risks? Is there any validity to his
statement? Why?

Thanks much,
Dan
Jul 17 '05 #1
1 1237
Java has a very powerful and robust threading model, Dan. I think your
friend was referring to the ways the multiple threads can access
objects/data during application runtime. To be a credible Java programmer
using threads, you need to understand the concept of syncronization and why
it is used. The Java site has a pretty good tutorial on Threads and their
life-cycle. I would suggest reading up on the topic, that's how I learned
about it. ;)

-John

"newcastle" <da*@nospam.nospam> wrote in message
news:mjKac.32825$wl1.17183@fed1read06...
I am a newbie Java programmer and am just learning about threads. A
colleague if mine once told me that 'threads were unsafe'. I didn't
bother to ask him why because at the time I didn't know what threads
were! Do threads in Java pose any risks? Is there any validity to his
statement? Why?

Thanks much,
Dan

Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Daniel Andersen | last post by:
Hey, We are in the process of rewriting our internal management system (which was written in PHP4), and figured this would be a good time to migrate to PHP5 to get all the OO goodness it has to...
3
by: Ronan Viernes | last post by:
Hi, I have created a python script (see below) to count the maximum number of threads per process (by starting new threads continuously until it breaks). ###### #testThread.py import...
5
by: Ghazan Haider | last post by:
Hi all, I have a server from which keeping clients off for maintenance is difficult. They all have VPN connections and can be online any time they want, and uptime as always is important. Now...
2
by: dba_db2 at nospam gmx.net | last post by:
Looking at http://www-306.ibm.com/software/data/db2/linux/validate/ it told us that db2 v8.1 is not validated yet for suse90 professional ed. Do you have any experience regarding the stability...
9
by: -Michelle- | last post by:
This is a general question about back ends. Using in the scenario of a single user machine or *possibly* 2 networked machines. Therefore using SQL Server is not really an option. I need to...
1
by: Dominic | last post by:
Hi all, We've just migrated to IIS 6.0 / Windows Server 2003. We are now experiencing some stability problem what we did not experience in IIS 5.0 / Windows 2000 Server. Our ASP.NET application...
8
by: Bob | last post by:
I'd be pinging for 24 hours at 3 second intervals. Are there any IP addresses out there that exist just for pinging, if not, would it be considered rude to pick a major site such a google? Or -...
10
by: Darian | last post by:
Is there a way to find all the thread names that are running in a project? For example, if I have 5 threads T1, T2, T3, T4, T5...and T2, T4, and T5 are running...I want to be able to know that...
38
by: writeson | last post by:
Hi all, At work I'm considering proposing a solution for our distributed processing system (a web based shopping cart that feeds an actual printing production line) based on Pyro. I've done some...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.