Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 26th, 2007, 07:55 AM
tal tal is offline
Authorized User
 
Join Date: Apr 2007
Location: , , .
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default --Javascript Synchronization--

Hi all,
It seems like there's no proper way to implement a critical section in JS, eventhough this is most needed. I am triggering many events at once (a must in my application) which should handle parts of the DOM.
The lack of critical section causes race conditions, and a corruption of data.:(

The only way i found to sych is by:
http://www.onjava.com/pub/a/onjava/2...on.html?page=2
though it seems like it's not completely avoiding race conditions.

Anyone found a better/simpler solution

Reply With Quote
  #2 (permalink)  
Old June 27th, 2007, 11:01 AM
Friend of Wrox
Points: 1,749, Level: 16
Points: 1,749, Level: 16 Points: 1,749, Level: 16 Points: 1,749, Level: 16
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2007
Location: San Diego, CA, USA.
Posts: 477
Thanks: 10
Thanked 19 Times in 18 Posts
Default

I'm not familiar with one myself, but I'll try to poke around. :) I assume you're trying to sync modified data back to your application's database?

Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe

When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper

Chroniclemaster1, Founder of www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.
Reply With Quote
  #3 (permalink)  
Old June 29th, 2007, 11:33 AM
tal tal is offline
Authorized User
 
Join Date: Apr 2007
Location: , , .
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well, my conclusion is that the execution of javascript event is ALWAYS atomic, so there's nothing to worry about.
I think...

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cross-domain synchronization NicoDeBruin General .NET 5 August 26th, 2007 02:34 PM
data synchronization abdulweb General .NET 0 August 26th, 2007 12:20 AM
Access / MySQL Synchronization echovue Access VBA 4 December 5th, 2005 02:49 PM
XML Synchronization prashant_dnmmkpk Biztalk 0 January 17th, 2005 09:16 AM
Synchronization Problem bveerendrakumar Pro VB 6 2 July 10th, 2003 05:18 AM



All times are GMT -4. The time now is 06:10 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.