Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8226821
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T15:54:36+00:00 2026-06-07T15:54:36+00:00

Before I have started to do web-programming I had thought it was easy. Now,

  • 0

Before I have started to do web-programming I had thought it was easy. Now, after a year of experience I think it can be really damn hard mainly because of concurrency issues.

Because that was some very unexpected finding out, I tried to ask my more experienced friends (they had made some apps like e-shops etc.) about it. Specifically, I asked them if you can really have concurrency issues that you need to solve or otherwise you are at danger of your data becoming inconsistent and they were like: “hmm, never thought of that”. That made me a bit afraid of my sanity and not even some exhausting web search have persuasively answered the question.

Hence, here I am to make sure that rails of my mind do not lead to a very white polstered room:

1) supposing LAMP framework, is it possible for two php scripts run by apache to overlap in execution in any possible manner?

2) is it possible for the same script to be run more than once at the same time with its instances overlapping in any possible manner?

3) was the LAMP choice important or does the same thing holds for like any web-development environment used today?

4) If the concurrency really can be a problem and i am not just making things up, is there any theory that would help me to wrap my head around it and solve these problems like this: “hey look, there is a possible concurrency issue” and after a while: “hey, this is a classic example of X, which can be solved this way”.

5) why programmers tend to look at web development as not being “kosher” while thinking they could do it easily? (no need to answer this but that fact pisses me off now while I know it used to be the same with me)

I know, this is probably multi-sucky-general question from the stackoverflow’s point of view but I have nobody really experienced around me that could help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T15:54:38+00:00Added an answer on June 7, 2026 at 3:54 pm

    I don’t really think the principles of protecting shared resources is too much different between web apps and standard desktop programs. Resources are resources and an app can be run more than once unless you specifically prevent multiple instances.

    1) supposing LAMP framework, is it possible for two php scripts run by
    apache to overlap in execution in any possible manner?

    Yes. Apache can run requests in threads/processes. Two PHP script requests could run at the same time.

    2) is it possible for the same script to be run more than once at the
    same time with its instances overlapping in any possible manner?

    Yes. Apache can run requests in threads/processes. Two PHP script requests could run at the same time.

    3) was the LAMP choice important or does the same thing holds for like
    any web-development environment used today?

    Apache has the methodology of running requests in multiple threads. There are other servers that use an async approach. Either way, you shouldn’t rely on the web server to provide guards against concurrent ops in your code. That is the responsibility of your code to check resources.

    4) If the concurrency really can be a problem and i am not just making
    things up, is there any theory that would help me to wrap my head
    around it and solve these problems like this: “hey look, there is a
    possible concurrency issue” and after a while: “hey, this is a classic
    example of X, which can be solved this way”.

    It really comes down to the resources of your code, and what you are sharing. If a script for instance needs to work with the filesystem, then your code should be checking via some type of synchronization. Databases tend to handle that for you with internal locking to rows or tables.

    5) why programmers tend to look at web development as not being
    “kosher” while thinking they could do it easily? (no need to answer
    this but that fact pisses me off now while I know it used to be the
    same with me)

    I am sure people that don’t know how to do web design (especially server side) think its all just typing up word documents. Once you do it, you realize its a lot of work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I have this idea that I've had since I started programming. I wanted
We have just started our new assignment - web-based project. Before I get directly
It is looking increasingly like I'll have to go live before I have had
I have a before element showing a > before a menu item. You can
Since C# doesn't have a before,after,last,first etc. as part of its foreach. The challenge
I have just started looking into .net MVC and I really like it. There
I have recently started a fairly large web project which is going to use
Coming from web development I have been trying to get familiar with compiled programming,
In the last year I've started programming in Fortran working at a research university.
Anyone seen this before? 2011-04-20T18:45:07+00:00 app[web.1]: Jammit::OutputNotWritable (Jammit doesn't have permission to write to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.