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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T01:30:34+00:00 2026-06-14T01:30:34+00:00

I have a application and it is used by multiple users at a same

  • 0

I have a application and it is used by multiple users at a same time . i wanted to use a common function say for example number format

  public class CustomFormat
  {
     public static function funt(val:int,prec:int):int
     {
        // return val with formatting along with prec
     }
  }

As static functions are attached to classes not to the instances .

now assume the case when two user’s call that CustomFormat.funt(2,2); & CustomFormat.funt(3,3); at same time how this will act . i guess there might me issue in result’s . to try still i did not implement this , so any suggestion’s , if this has issue then i need create an object for each request or anything else i need to do

thanks

  • 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-14T01:30:36+00:00Added an answer on June 14, 2026 at 1:30 am

    You have a misconception of what an swf based application is.

    Every user that loads your app will have an unique instance of the app: it is a client app that runs inside your user’s browser. It’s not possible that several users could be accessing at the same time to your static function because it’s not running that way (i.e. inside a server).

    And considering that your app is single threaded (you’re not using AS3 Workers) each call to the static function will be executed in order.

    In other case, you should consider your static function as a shared resource, so you will have to implement concurrent mechanisms in order to assure a correct access of it.

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

Sidebar

Related Questions

I have various Java Swing applications that are used by multiple users. My deployment
Say I have an application that used an ORM (I am thinking of nHibernate
I am building a web application, which can be used by multiple users simultaneously.
Here is my situation. I have a server application designed for multiple users to
I have an ASP.NET application that uses Session.SessionID to prevent multiple users viewing the
I have an application that used Macro. In this macro I would like to
I see an application have used Log.info = some info where are these logs
I have an application that is used on several hundred computers across the company
We have an older VB6 application that used to run under various user's accounts.
I have a C# application that is used by about a dozen employees simultaneously.

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.