Welcome to DU! The truly grassroots left-of-center political community where regular people, not algorithms, drive the discussions and set the standards. Join the community: Create a free account Support DU (and get rid of ads!): Become a Star Member Latest Breaking News Editorials & Other Articles General Discussion The DU Lounge All Forums Issue Forums Culture Forums Alliance Forums Region Forums Support Forums Help & Search

Website, DB, & Software Developers

Showing Original Post only (View all)

DaveJ

(5,023 posts)
Sat Jun 15, 2013, 03:08 PM Jun 2013

Do I need to worry about thread safe methods? [View all]

My boss at my new job is mentoring me on making my methods 'thread safe' and such, which I never had to worry about before. I don't understand what he's trying to say. I thought that 'thread safe' pertained to applications where you intentionally create threads. We are not creating any threads. He seems to think that a website has the potential of overwriting variables when multiple users log on. He likes to make methods static and then he started talking about the heap and stack where variables are stored. If we never create a thread, I don't see how that would happen...???

9 replies = new reply since forum marked as read
Highlight: NoneDon't highlight anything 5 newestHighlight 5 most recent replies
Latest Discussions»Retired Forums»Website, DB, & Software Developers»Do I need to worry about ...»Reply #0