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 7848473
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T18:13:03+00:00 2026-06-02T18:13:03+00:00

What is event-driven programming and has event-driven programming anything to do with threading? I

  • 0

What is event-driven programming and has event-driven programming anything to do with threading? I came to this question reading about servers and how they handle user requests and manage data. If user sends request, server begins to process data and writes the state in a table. Why is that so? Does server stop processing data for that user and start to process data for another user or processing for every user is run in a different thread (multithread server)?

  • 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-02T18:13:04+00:00Added an answer on June 2, 2026 at 6:13 pm

    Event driven programming != Threaded programming, but they can (and should) overlap.

    Threaded programming is used when multiple actions need to be handled by a system “simultaneously.” I use simultaneously loosely as most OS’s use a time sharing model for threaded activity, or at least they do when there are more threads than processors available. Either way, not germane to your Q.

    I would use threaded programming when I need an application to do two or more things – like receiving user input from a keyboard (thread 1) and running calculations based upon the received input (thread 2).

    Event driven programming is a little different, but in order for it to scale, it must utilize threaded programming. I could have a single thread that waits for an event / interrupt and then processes things on the event’s occurrence. If it were truly single threaded, any additional events coming in would be blocked or lost while the first event was being processed. If I had a multi-threaded event processing model then additional threads would be spun up as events came in. I’m glossing over the producer / worker mechanisms required, but again, not germane to the level of your question.

    Why does a server start processing / storing state information when an event is received? Well, because it was programmed to. 🙂 State handling may or may not be related to the event processing. State handling is a separate subject from event processing, just like events are different than threads.

    That should answer all of the questions you raised. Jonny’s first comment / point is worth heeding – being more specific about what you don’t understand will get you better answers.

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

Sidebar

Related Questions

This is a question about generic c++ event driven applications design. Lets assume that
I just thought about the non-blocking infrastructure of tornado and event-driven programming. Actually I'm
I'm learning event-driven programming by Java now, but most materials are about swing. I
My question is pretty simple: how is event-driven programming actually achieved? To elaborate: I
I am quite confused about the event-driven programming paradigm of Android? Who is in
Can we do event driven programming in Python. If we can, can some one
Being a web developer, I know how event driven user interfaces are written, but
So, I have a user driven website. Users can post whatever they want, even
This is somewhat of a general question regarding Windows programming: Are Window messages "reliable"?
After playing with Node.js and reading about async i/o & evented programming a lot

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.