Giter Club home page Giter Club logo

Comments (5)

cedricongjh avatar cedricongjh commented on September 25, 2024 1

This is not a defect at all as the code in question is single threaded

from teammates.

kevin9foong avatar kevin9foong commented on September 25, 2024 1

If it is single threaded application, you mean to say, if there are multiple requests from multiple users, will it not get associated with a thread to complete the task?

Hi there, TEAMMATES does not use multi-threading in the application code in the sense that multiple threads do not perform operations on the same StringBuilder instance in parallel. Hence there is no race condition and no thread-safety is needed.

StringBuffer's thread safety also comes at a cost of slower operations compared to StringBuilder.

from teammates.

BigBrainTechnologies avatar BigBrainTechnologies commented on September 25, 2024

Our students are ready to fix it, if the confirmation is obtained from key contributors on the validity of the defect

from teammates.

SwarnaLathaNatesan avatar SwarnaLathaNatesan commented on September 25, 2024

If it is single threaded application, you mean to say, if there are multiple requests from multiple users, will it not get associated with a thread to complete the task?

from teammates.

SwarnaLathaNatesan avatar SwarnaLathaNatesan commented on September 25, 2024

Here is the detailed set of points to be considered:

"Teammates" is using Servlet as the UI server, which is a Java-based technology for building web applications. Servlet is a part of the Java Enterprise Edition (Java EE) platform, which provides a comprehensive set of APIs for building enterprise-level applications.
Regarding the question of whether it is possible to have an application designed without threading, the answer is no. Threading is an essential part of any modern application, including web applications. Threading allows an application to handle multiple tasks simultaneously, which is crucial for providing a responsive user interface and efficient data processing.
In the case of the "Teammates" application, threading is used in the Servlet container, which handles incoming HTTP requests and dispatches them to the appropriate Servlet instances. Each Servlet instance runs in its own thread, allowing the application to handle multiple requests concurrently.
Moreover, the "Teammates" application uses AngularJS for generating the UI, which is a JavaScript framework that runs in the client's web browser. AngularJS uses asynchronous JavaScript and XML (AJAX) requests to communicate with the server, which is another form of threading. AJAX requests allow the application to fetch data from the server without blocking the user interface, providing a smooth user experience.
In summary, while it is possible to design an application without explicit threading, it is not possible to build a modern web application without using threading implicitly. The "Teammates" application uses Servlet and AngularJS, which both rely on threading to provide a responsive user interface and efficient data processing.

from teammates.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.