Accessing a static varible from different object at the same time

hi
assume that i have calss it contains a static variable i am creating
N numbere object of that class and i am try to access the static variable at the same time from different object.if i access like that any problem(deadlock) will occure or not? plz help me
with regards
suresh

FeedFeeds : Read news and blogs a new way!
http://www.feedfeeds.com
Please don�t spread any kind of propaganda in this forum...;-)

Similar Messages

  • How do I view multiple images from different projects at the same time?

    Hello
    I've been trying to find the answer in the user manual, but no luck so far.
    I did find how to open 2 projects at once, but I can only see one image at a time in the viewer and I have to keep going back and forth between projects to compare images. (These are scans of old photos and I want to eliminate the ones that are poorer quality, so need to compare numerous images from 2 sets of scans)
    How can I view an image from one project at the same time as an image from another? I know that it can be done in the same project by apple-clicking the second, third etc image, but this doesn't work if the images are from different projects.
    Thank you
    Elizabeth

    Thank you again Tony
    I've now created an album, independent of the projects, and dragged test images into it and it does just the job I needed. Now i just need to keep my brain sorted with which ones are which while i'm working
    Elizabeth

  • Is is possible to open event lists from different tracks at the same time in Logic Pro 9?

    Is it possible to open event lists from two difference tracks in an arrangement at the same time in Logic Pro 9?
    When I switch between tracks the event list swiches as well. Thanks in advance.

    If you deselect the litte chain link icon in the event list window, it will no longer follow your region selection and you can openas many as you need. Also you can select multiple regions and see the inthe SAME window if you select to show multiple regions, and you can have the notes shown in their respective track colors.

  • Retrieving data from different tables in the same time crash

    Hi
    this is probably the wrong way to do it, but this is how I did:
    - I wanted a screen with 3 datagrids components retrieving data from 3 different tables.
    - I could make it work while enabling 1 or 2 of them.  When the 3 are enabled, I get this error:
    btw its a huge msg, I will trim it:
    ArgumentError: Can't find ManagedQuery or ManagedOperation named: getItems_paged     at mx.data::RPCDataServiceAdapter/executeQuery()[C:\depot\DataServices\branches\lcds_modeler 101\frameworks\projects\data\src\mx\data\RPCDataServiceAdapter.as:325]     at mx.data::RPCDataServiceAdapter/processDataMessage()[C:\depot\DataServices\branches\lcds_m odeler101\frameworks\projects\data\src\mx\data\RPCDataServiceAdapter.as:920]     at RPCDataServiceRequest/invoke()[C:\depot\DataServices\branches\lcds_modeler101\frameworks\ projects\data\src\mx\data\RPCDataServiceAdapter.as:1668]     at mx.data::DataStore/http://www.adobe.com/2006/flex/mx/internal::invoke()[C:\depot\DataServices\branches\lcds_m odeler101\frameworks\projects\data\src\mx\data\DataStore.as:3343] ...  it continues forever. 
    the getItems_paged is a auto generated function inside the php class flex generates to handle the tables.
    Each of the datagrid is a custom component. I made so to avoid keeping a bunch of code lines in the main 'page'.
    Any suggestion to make it work smoothly?
    Thanks in advance,
    btp~

    Hi
    this is probably the wrong way to do it, but this is how I did:
    - I wanted a screen with 3 datagrids components retrieving data from 3 different tables.
    - I could make it work while enabling 1 or 2 of them.  When the 3 are enabled, I get this error:
    btw its a huge msg, I will trim it:
    ArgumentError: Can't find ManagedQuery or ManagedOperation named: getItems_paged     at mx.data::RPCDataServiceAdapter/executeQuery()[C:\depot\DataServices\branches\lcds_modeler 101\frameworks\projects\data\src\mx\data\RPCDataServiceAdapter.as:325]     at mx.data::RPCDataServiceAdapter/processDataMessage()[C:\depot\DataServices\branches\lcds_m odeler101\frameworks\projects\data\src\mx\data\RPCDataServiceAdapter.as:920]     at RPCDataServiceRequest/invoke()[C:\depot\DataServices\branches\lcds_modeler101\frameworks\ projects\data\src\mx\data\RPCDataServiceAdapter.as:1668]     at mx.data::DataStore/http://www.adobe.com/2006/flex/mx/internal::invoke()[C:\depot\DataServices\branches\lcds_m odeler101\frameworks\projects\data\src\mx\data\DataStore.as:3343] ...  it continues forever. 
    the getItems_paged is a auto generated function inside the php class flex generates to handle the tables.
    Each of the datagrid is a custom component. I made so to avoid keeping a bunch of code lines in the main 'page'.
    Any suggestion to make it work smoothly?
    Thanks in advance,
    btp~

  • Collecting data from advantech-usb4704 with two different apps at the same time

    I wonder if I can access to Advantech-4704 with two different applications at the same time?
    I use this block in my vis.
    I have enough ports, but inputs are needed in completely different applications. Do I have to close one of them or can they run simultaneously?
    Thankyou!

    Dear gtu,
    as nathand said, usually it is not supported to access the same physical resource simultaneously from multiple programs. In case of DAQmx for instance, you will get an error message which says that the resource is already reserved. I suppose the same would happen with your driver, however it might be worth a try.
    One workaround could be however if you revise your applications and merge the codes if it is possible so that no concurent resource allocation takes place.
    Best Regards,
    Adam Cseh
    Applications/Systems Engineer
    National Instruments

  • Hi can someone tell me if it is possible to have two accounts (from different countries) in the same laptop?

    Hi can someone tell me if it is possible to have two accounts (from different countries) in the same laptop?

    Hi...
    The issue is that your credit or debit card credentials must be associated with the same country where you reside to make purchases.
    "Although you can browse the iTunes Store in any country without being signed in, you can only purchase content from the iTunes Store for your own country. This is enforced via the billing address associated with your credit card or other payment method that you use with the iTunes Store, rather than your actual geographic location."
    From here >  The Complete Guide to Using the iTunes Store | iLounge Article
    Billing policy is the same for both the iTunes as well as Mac App Stores.

  • Data from different databases in the same report.

    Hi Everyone,
    I am trying to build a reconciliation report in which I need to show the data from the source and target, side by side.
    Source and target are both different databases, although being oracle only
    Whenever a new data model is created, it gets attached to a data source and in the report we need to choose a specific data model.
    Can we have data from different databases in the same report ?

    Yes, it is possible.
    One way Is to use dataTemplates. There you can make queries from any number of different databases (The max I have done is 5).
    It looks something like that:
    <dataTemplate name="NameOfTemplate">
    <dataQuery>
         <sqlStatement name="Q1" dataSourceRef="Connection1">
              <![CDATA[     select * from table1]]>
         </sqlStatement>
         <sqlStatement name="Q2" dataSourceRef="Connection2">
              <![CDATA[     select * from table2]]>
         </sqlStatement>
      </dataQuery>
      <dataStructure>
         <group name="RESULT1" source="Q1">
              <element name="P_FIRST_NAME" value="P_FIRST_NAME"/>
         </group>
         <group name="RESULT2" source="Q2">
              <element name="P_DATE" value="P_DATE"/>     
         </group>
      </dataStructure>
    </dataTemplate>dataStructure is very important when you get data from different places, if you don't define those elements, then only the result from Q1 is shown.
    The second possible way is to make as two different data models, each containing their own query and then set Main Data Set as concatenated SQL Data Source.
    Best of luck,
    Evelyn

  • Mail sorting messages from different people in the same thread?

    I have this weird issue. It's happened before but I figured I might be able to figure this out.
    I got a response from somebody this morning and whats happening is, when I click on his response, the email shows up on the right like it should. However, ths email is from "Floyd" and shows as email "2". It shows another email below it in the "thread" from "Taryn" and has absolutely nothing to do with this email. The only similarities are the subject line which says "Poster". The "First" email from Taryn is from April. It seams as if it's sorting the emails by subject line. I don't want emails from different people in the same thread. Any thoughts on how to fix this issue? Image attached.
    OSX 10.8.4

    This question is about the same as mine.  I migrated all my data from old mac mini to new mac mini.  System screwed up and permission and owners were not setup.  Now I'm trying to salvage this mess.  I'm also trying to import mail, which I think should be on the computer but I don't know where.
    Same question where does the computer store Mail mail?
    Chuck

  • Stream from iMac to 2 different ATV's; different movies, at the same time?

    Can I stream  from my iTunes library on my mid 2014 iMac; to two different 3rd gen ATV's, two different movies at the same time?

    Thank you Alley_Cat for your reply!
    Yes...all devices are enabled for Home Sharing with the same APPLE ID, all on the same network, the content is in iTunes and compatible, computer and iTunes running, and I am initiating playback on the AppleTVs themselves via the Computers icon.
    playback is is fine on 1st ATV. When I TRY to connect to ATV #2... and try to connect to my iTunes library i get:
    COULD NOT CONNECT TO _______ LIBRARY MAKE SURE COMPUTER IS ON THE SAME NETWORK AND ITUNES IS UP TO DATE AND ITUNES IS RUNNING.
    iTunes is up to date ver11.3.1.(2) .  As noted before,same network iTunes compatible, running and initiating playback on ATV's via Computers icon.

  • Controller different Input in the same time in a real Scenario...(SIMULATION IN 2 TANKS CONTROLLER BY PCB BOARD)

    Hi! I really need help....
    I´m doing a simulation where I can controller the input and output with one external PCB, all is working properly (the communication) but my problem is, I can´t open where ever I want the different valves...I mean, I must wait until the process is finish...
    The program is working with diferents process like this:
    §Process 0:
        Programinitialization. Tanks and pipes in zero state. Control for this state with  “pump on” button.
    §Process 1:
        §State:
             “ Pump on ” button istrue: Pump 1 isrunning, andTank 1 starts to be filled with water.
             “ Pump on ” button is false: nothing happen, go to the next process
    §Process 2:
         This process is controlled from the “Control 1”button with is who control “Valve 1” for the discharge of water from tank 1 to tank 2.
    §Process 3:
          This processiscontrolledfromthe “Control 2 ”button with is who control “Valve 2” for the discharge of water from tank 1 to tank 2 if “Control 3 ” button is close or if “Control 3 ”button is open the water go out from the loop.
    §Process 4:
          This processgiveyoutheoptiontocome back totheprocess 1 ortotheprocess 2 dependingofthestate in process 3.
    So my problem is I want  run different processes in the same time, without having to wait out the current process is running....
    this look like this:
    and with the differents states...so I was trying to use a Statechart for try to improve the simulation....
    like this:
    But when I was tried to implement in labview with the statechart module i can't find the way to interconexión with this new module...
    Because i need two differents regions...but i can't use the connexion between them....
    Some new idea, help....all is welcome!!!
    Thanks in advance.
    Elena

    Buenos días Alvaro,
    Si, mejor en español
    Si, me has entendido bien, exactamente es lo que me gustaria. 
    Empece por mi cuenta con labview y hay muchas cosas que se me escapan... Voy a implementar la máquina de estados a ver si asi soluciono el problema.
    Muchas gracias!
    Un saludo!

  • Time Division Multiplexing and Processing Different Loops at the same time

            Hi, I am new in Labview so you may find my questions too silly, sorry about that
    I want to design an interface to control the test&measurement devices remotely. I have two desks and there are several devices on these desks. The real problem is to use two different devices at the same time. To do this I heard that I can use time division multiplexing. But I couldn't find enough information about it in Labview. Another advice I heard was to use a matrice and hold the on/off state of the devices in this matrice. 
    Where should I start the design to create such a system? Do you have any advices? Thank you in advance.
    My basic GUI is attached.
    Attachments:
    InterfaceAli.zip ‏42 KB

    As Mike pointed out you cannot communicate in parallel on the GPIB bus - unless you have separate buses for each instrument - and that defeats the purpose of a bus. I am not sure about LXI.
    With regard to your VI:
    1. Do not use global variables to pass your data around.
    2. You should use the Array data type, not the Matrix data type. The Matrix data type in LabVIEW should only be used for matrix mathematical operations (linear algebra) which cannot be easily performed on the array data type. You have many more tools in LV to work with arrays.
    3. The Event structure needs to be in a parallel loop. This is basic data flow. If you do not understand this concept, get some training, either though the online tutorials or through a class.
    4. Use Value Changed events and place the button terminals inside the event case for that control.
    5. The parallel loops need to have a Wait or some other function which causes a delay. Otherwise, the first one to start executing could consume all available processor resources. These are called "greedy loops." 
    6. Use integer data types for case structure selector inputs. Floating point values are coerced to integers at the inputs. If the values resulted from calculations, unexpected rounding effects may occur, resulting in the wrong case being selected. In some cases using type defed enums may be even better. The underlying data is integer and the enum item names show up in the case selector labels, helping to document what the case does or why it was selected.
    7. Remove the timeout case from the event structure since it never executes. Also avoid Use Default if Unwired on the terminal with your matrix (array) data. You never have a situation where an empty array is appropriate.
    Before going any further with the program questions, you need to carefully define your requirements.  How many instruments will you have? How many can be active at one time? What kinds of communication between the program and the instruments is required? This includes commands to the instrument, data returned from the instrument, error handling, and timing requirements. What will be done with the data? Display, save to file, use to automatically control another device? What safety requirements or constraints need to be met? Once you have a good requirements document, then you can begin to determine what kind of program architecture is best suited to meet the needs.
    I suspect that you may be making some things much more complicated than they need to be while ignoring other important issues.
    Lynn

  • Control two different parameters at the same time

    Two motors were connected each other rigidly. One motor controlled torque and the other motor controlled speed. I generated some torque and speed data which represented one cycle of motion from a motor simulation. I like to send these two different data sets (torque and speed) to two different motors at the same time. Torque data sends to one motor and speed data sends to the other motor to see the response of the load profile. In order to do this, I thought about using multithread, but I am not sure it will work for this application. Usually multithreading delay the CPU time so the overall control process might be delayed, right? If you have better idea, please let me know.

    If you are using one motion controller to control both motors, you will probably run into problems if you try to use multithreading on the PC. However, you can execute up to 10 programs (threads) at a time, in addition to host communication, using on-board programming. For more information on on-board programming please refer to the following tutorial: Developer Zone Tutorial: On-board Programming in FlexMotion
    Best wishes!
    Dawna P.
    Applications Engineer
    National Instruments

  • Same query different timings , different sessions at the same time

    I am running exactly the same query from 2 different sessions almost simultaneously and in one session it is taking 2 seconds and in the other it is taking 20 seconds. The explain plans in both the sessions (by set autotrace on) are exactly the same. The timing is almost same for succesive runs of the query in the same sessions. That is when I run the query again in the "slow session" it is always around 20 seconds and when I run the query again in the "fast session" it is always fast. The queries are being run within a few seconds of each other so the load on the database is almost same.
    My hunch is that it is a database parameter that needs to be changed to solve this problem, can someone guide me with this ....which parameters I should ask our DBAs to adjust ? Our database is Oracle 10G.
    Regards
    Amitabha

    Duplicate thread
    Same query different timings , different sessions at the same time
    Gints Plivna
    http://www.gplivna.eu

  • Can I display different tables at the same time?

    Hello all,
    This is probably a newbie question but is it possible to display different tables at the same time? I'm using SQL Developer 1.5.5 and I seem to be unable to display more than one table at the same time, whenever i chose to open another table, the old table disappears. In other words, the table display just switches to your new choice in the table list navigator. Any ideas anyone?
    Regards,
    wf

    Menu item "Tools -> Preferences -> Database -> ObjectViewer Parameters"; make sure "Automatically Freeze Object Viewer Windows" is checked.
    HTH.
    Ed. H.

  • Error -50103 when I am trying to access two channels on USB 6366 board in the same time

    I am trying to use two DAQmx tasks attempting to access two channels from
    USB-6366 in the same time. But it gives me an error Error -50103. So I looked
    online and find out it says ' It is not possible to have multiple DAQmx tasks
    attempting to access the same physical device. '. So I am wandering how can
    collect data from my ai0 and ai1 channels in the same time? Here is my code,
    and please help me out. Thanks very much
    Attachments:
    error_-501013.vi ‏27 KB

    Simple - use a single task with multiple channels. Surely the answers in all of the related posts said that. The channel list is just dev1/ai0:1.

Maybe you are looking for

  • Blue screen when installing Win XP Pro on Satellite A100-211

    Hi all. I'm started to get really desperate here!! I've just bought my new Satellite A100-211 and now I want to install my own copy of Windows XP Professional (since the notebook ships with XP Home). But, when I try to boot from my Win Xp Pro CD (wit

  • How in the world can I delete music off of my sons iPod?

    I will start by saying I am not a computer whiz by any means of the word ... I have tried going into iTunes on the iPod but I am not finding any "Options" to manage the account settings in there. So then I connected te iPod up to my Mac hoping I coul

  • Clipping Mask issues

    I'm trying to create a clipping mask with a few things i made in autocad and brought into illustrator (copy/pasted or done as an eps, same results). the bottom layer is a pattern i created, again, in autocad and live paint bucketed to give it color.

  • Zip archive problem

    Hi everyone, Is there a way to repair a corrupt zip archive? I have a rather large file, a 2GB movie I want to unzip, but I get an error message with every program I've tried (stuffit, archive, jimzip, zipeg, the unarchiver). When I tried to unzip di

  • Hide Minimize Button in JFrame - Swing

    Hi Everybody, Is it possible to Hide the Minimize Button which will appear in right top Corner of the JFrame? OR Is it possible to deactivate the Minimize Action in the JFrame? This is for Java Application. Thanks in Advance. Best Regards Sam