i need a sample program to implement synchronization concept for a website...
i have an application connected with oracle database. i have to open the same application simultaneously in two visual studio ide to perform the same operation or different operation accessing the same database in a synchronized manner using mutex, lock and so and so........

Running the same app twice at the exact same time to show sycnronisation issues? Can't you use one application with a couple of threads to do the same thing? At the very least you wouldn't have to jump between two IDEs.

As per name suggest the Mutex will stop any process on the same machine accessing it as well, whereas lock will only stop other threads in the same process.

Please read a post - BASIC SYNCHRONIZATION by Joseph Albahari

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.