Comments (5)
This is not a defect at all as the code in question is single threaded
from teammates.
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.
Our students are ready to fix it, if the confirmation is obtained from key contributors on the validity of the defect
from teammates.
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.
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)
- Problem with BACK-END TEST SUITES HOT 1
- Add CAPTCHA to Account Request Form HOT 1
- Release V9.0.0-beta.6 HOT 2
- Code Coverage Issue: struggling to pass all tests
- Admin rejecting account request: give actual account in the email template
- Account request form: No need to CC the email 'Acknowledgement of Instructor Account Request' HOT 2
- Accounts request form: auto-unify country names HOT 6
- Admin managing account requests: use spinners to indicate actions in progress HOT 4
- IndexOutOfBoundsException encountered by LogsProcessor HOT 2
- Need help with contributing HOT 3
- Admin: Unable to create an instructor account if the same email was used for a student account HOT 1
- Account Request Form: Adding Cancel button
- Better and enhanced look and working of the site. HOT 2
- Failing component tests
- Add Google Calendar Link to Email Templates HOT 3
- Copy students from existing students table to new students table HOT 2
- Didn't Account for the Timezone in Session Edit Form component tests
- Runner images update
- Update Documentation in line with Docker Compose v2
- Typo in `teammates.common.datatransfer.questions.FeedbackNumericalScaleQuestionDetailsTest.tesValidateResponseDetails` HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from teammates.