Using two thread together

Helo. i develop a gps application .i use 2 threads for location updates and locationprovider status: i use thread like this: I
public class LocationUpdater implements Runnable { // using for location updates
public void run() {
try
   catch(Exception ex)
         wait();
         su.notify();//su is a thread that i used for getting locationprovider  status }
    }}And the other one:
public class StatusUpdater implements Runnable
public void run()
  try
   catch(Exception ex)
         wait();
         t.notify();//tis a thread that i used for getting location updates
Thread for providers' status doesn't run and the other one that updates location runs more slow.

cFP can only support 8 cards, so if you have an 8 slot backplane there is no point in getting another.
If you have a 4 slot backplane, you can try searching this site to see if NI has some sort of extension cable, but I doubt that.
In the future, you should post such questions to the Fieldpoint board, because you will be more likely to get an answer.
Try to take over the world!

Similar Messages

  • Bridge is slow because it's only using two threads

    I'm finding that Bridge (CS6) exhibits very poor performance when building 100% previews, I think the software is limited to only two threads.
    If you load bridge and go into a folder with some images and then Tools->Cache->Purge you'll see that Bridge takes a long time to rebuild the previews even on a high end machine, especially if you have both "Always High Quality" and "100% Previews" selected. I think the problem is that it appears to build the previews using only two threads on the CPU, so while a 2005 dual core machine might get maxed out, a Quad Core, or 8 Thread, or even 12 Thread machine sits there mostly idle while Bridge grinds away for an hour or more.
    It's easy to check this, just load up Windows Task Manager, and view the "Processes" tab and Bridge will only ever use 2 threads worth of CPU cycles, i.e. 50% on a Quad Core, and 17% on a 12 Thread high end desktop. I've seen the problem with JPG files, PSD files, and NEF files (Nikon RAW). The processing time of large Nikon D800E NEF files is very slow. After shooting 900 images I can expect the preview build time to take over an hour on a super high end machine with loads of memory, storage IO, and CPU cores and threads, all because it appears bottlenecked on software design. Meanwhile the machine is only running at roughly 20% utilization, the memory barely used, and the IO system close to idle.
    I'm using Windows 7 Ultimate 64-bit, 64GB RAM, 12 Thread Core i7 3960X at 4Ghz, two Nvidia GTX470 graphics (in SLI), a 2-way RAID-0 SSD storage array for the OS, and an 8-way RAID-0 SSD array for the photoshop work files. The hardware is clearly not the issue. Although, just to check, I confirmed the same problem exists on a simple Win8 Core i7 system, and a Core i5 laptop.
    Even worse, after waiting an hour to build previews for 900 images (3 seconds each), after adding GPS data, or after making edits in Camera Raw it then needs to rebuild all the previews again, this is understandable, but super fustrating when you know it's not working as fast as it really should be.
    To be clear, I'm not upset it takes 6 seconds per image per thread - there's a lot of work to do, especially with D800 files. But I'm upset that Bridge's software design only uses 2 threads, and thus limits performance to building a preview every 3 seconds, when in fact it could be working 6 times faster on a PC with 12 thread, and I find it shocking that Adobe's latest software wouldn't be optimized for anything more than a dual core CPU, wasn't quad core launched in 2006?
    Roland.
    P.S. for any Adobe Tech's reading - I submitted this under case number 184020852 and there's an attached PDF in the ticket including several screenshots.

    There have been many discussions in Photoshop forum about processor speed and multicores.  I know Bridge is not Photoshop but it may give you some insight as what is going on.  Photoshop has supported multithreading since CS3.  Here is a quote from Adobe Tech Note:
    Photoshop generally runs faster with more processor cores, although some features take greater advantage of the additional cores than others. There is a law of diminishing returns with multiple processor cores: The more cores you use, the less you get from each additional core. Therefore, Photoshop doesn’t run four times as fast on a computer with 16 processor cores as on a computer with four cores. For most users, the increase in performance that more than six cores provides doesn't justify the increased cost.
    I run embedded thumbnails (therefore 100% previews are off) as they take up less space and are the fastest to load.  I ran a simple test with Bridge CS5 (32 bit) and CS6 (64 bit) on one folder of 200 video images totaling 16 gigs, or 80 meg per file.  With folder loaded I clicked Tools/Cache/purge cache for xxx folder.  I then timed the rebuild until the arrow stopped spinning in lower left hand corner.  For CS5 the time was 35 seconds.  For CS6 the time was 72 seconds. 
    I then took a folder of 1147 jpg images of 660 meg (427k/image).  In CS5 it took 12 seconds to build the cache, and the same for CS6.  However, the interesting part of this is when I loaded this folder in CS6 I had never been there before so it had to build it.  THis took 80 seconds.  When I purged it an it rebuilt it took 12 seconds.  I have noticed this phenomemum before where the initial build takes 5-7 times longer than a rebuild of the cache.
    I then ran the same test with the still images with 100% preview and Always High Quality.  With CS5 it took 3 min 30 seconds and with CS6 it took 5 min. 20 seconds.
    So with these very SIMPLE tests I conclude that CS6 has quite a bit slower cache process than CS5.  As we have all learned with buying new products, new and improved does not always mean it is better. 

  • Using two backplanes together

    Hi, can I use to backplanes together using just a Controller cFP-2020 or, if I wish use these two backplanes I'll need to use two Controllers cFP-2020?

    cFP can only support 8 cards, so if you have an 8 slot backplane there is no point in getting another.
    If you have a 4 slot backplane, you can try searching this site to see if NI has some sort of extension cable, but I doubt that.
    In the future, you should post such questions to the Fieldpoint board, because you will be more likely to get an answer.
    Try to take over the world!

  • Using two routers together and having problems

    i am using a wrt54g router and the modem is plugged into that wan port and i want to use a befsx41 router to add more ports for internet and to give some extra places to use internet on it. how would i get this to work because i have internet from the wrt54g router wired and wireless but the stuff plugged into the befsx41 doesnt work...

    willlayb wrote:
    i am using a wrt54g router and the modem is plugged into that wan port and i want to use a befsx41 router to add more ports for internet and to give some extra places to use internet on it. how would i get this to work because i have internet from the wrt54g router wired and wireless but the stuff plugged into the befsx41 doesnt work...
    Hi
    I Think u are missing something in between.
    Follow the Magic Link , and observe the steps.
    hope for gud .
    pe@c3
    "What u Give , is wht u better start expecting to take back".. - http://Forsakenbliss.wordpress.com

  • Usign two batteries together? Larger battery with better capacity?

    I am considering to buy a MacBook, and operate it entirely on batteries. I'm electro-sensitive.
    Is it possible to use two batteries together?
    It it possible to have a larger battery which lasts more time?

    It is not possible to install two factory batteries at the same time.
    But, it is possible to use two batteries together (sort of).
    For the PowerBook and iBook, there are after-market battery options that provide you with extended battery run-time.
    Essentially, they are large and flat batteries that are approximately the same length and width as the iBook or PowerBook.
    They are very thin, and essentially look like a small plate.
    Basically, they plug into the iBook or PowerBook's power port, and provide it with power just as if it were plugged into the wall.
    So, the computer believes that it is getting power from the wall adapter. Then, when that battery drains, it moves onto using the standard battery.
    One such device is available here:
    http://www.lindelectronics.com/cgi-bin/store/shop.cgi//ppack/x/dbxgen_ppackmfgs/
    There are many different companies that I have seen selling these types of devices. So, you can look around.
    I don't expect that there are any available for the MacBook or MacBook Pro yet (since they use a different style connector). But, I imagine that such an option will appear in the future.
    Hope this helps.

  • Using two bluetooth adapters (not devices) together in OSX?

    I was wondering if its possible to allow OSX to use two bluetooth adapters at the same time? In windows, when you plug in two adapters, it places two bluetooth icons in the system tray. It seems when I try this with OSX, the main adapter is used, and the secondary adapter gets listed as a keyboard im guessing, as a window pops up saying it doesnt recognise my keyboard (even though i own no bluetooth keyboards), and it shows up with an improper mac address with the main bluetooth adapter, but not as its own. Is there any way to make OSX notice the second adapter?
    EDIT: I guess I should specify my reasoning for this. on windows, because of the way bluetooth works, ps3 controllers need to isolate the bluetooth adapter, rendering a bluetooth adapter solely for the ps3 controller. obviously this works in osx without isolation, but I noticed that since the ps3 controller pairs by mac address, using the same adapter results in only having to pair the controller to osx and windows once, rather than having to pair each time i switched between systems. Also, I would still like to use the second adapter as its own for pairing other devices.
    Message was edited by: unvaluablespace

    Hi,
    Thank for posting in Microsoft TechNet Forum.
    Based on my research, two Bluetooth adaptors can work at same time.
    In your case, the major problem is the dongle can’t start. I suggest you could test if the new Bluetooth adapter could work in another computer?
    Meanwhile, the Code 10 error pertains mainly to hardware and device driver issues or to compatibility issues between hardware drivers and additional software
    that is installed in Windows. Therefore, we recommend that you troubleshoot these issues by focusing on device drivers, on device configuration issues, and on hardware compatibility issues.
    I recommend you could refer to:
    Description of Code 10-related errors that Device Manager generates in Windows-based computers
    Hope it helps.
    Regards,
    Alex Zhao
    TechNet
    Subscriber Support in forum. If you have any feedback on our support, please contact
    [email protected]
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Using Sections To Tie Two Rows Together

    I use the section capability to join two rows together.  I have a button that will duplicate the section.  Which on the screen shows perfectly.  However, when you save the file, and open it back up it does not maintain those sections.  It combines them into one.  look at this example:
    TABLE 1
    ROW 1: element1, element2               -- Row 1&2 are group as a section
    ROW 2: element1, element2
    User press the add button:
    Table 1
    ROW 1: element1, element2                -- So when the user press the add button it duplicates the section to add two more rows in order
    ROW2: element 1, element2
    ROW3: element 1, element2
    ROW4: element 1, element2
    The user now saves the form and exits...
    The user lanuches reader and opens the form. they see the follow result...
    ROW1: element1, element2
    ROW3: element1, element2
    ROW2: element1, element2
    ROW4: element1, element2
    I need the section to stay together...  Any suggestions of what can be done?
    Regards

    Uncheck the checkbox for the "Repeat Row for each Data Item" in the Bidning tab for Row2 and Row3 inside the Section.
    You are actually creating a new instance of the section (which includes Row2 and Row3). So this check box should be checked at the Section levl not at the Row level. You have already checked the Section property so remove from Row 2 and Row3.
    Thanks
    Srini

  • How to use two different network cards on RT?

    Hi everyone... I'm currently working on a project where I have to deal with the issue mentioned in the thread's topic: I have a PC with RT LabVIEW that has to be able to establish network connections using two different network cards. One will be used to connect via TCP/IP with a host computer that will show the data transmitted through shared variables; the other will communicate with another PC through Modbus protocol. The key is that each communication is done through a separate network card.
    So far I haven't been able to figure out how to configure both things to happen. Does anyone know how to do this? Any tips will help.
    For the RT communication I'm using a standard RT project, with the RT PC being given one of the IPs, and for the Modbus part, I created an I/O server with a master and a slave. Separately everything works fine, but when I get them together it simply won't work.
    Thanks for your help!
    Solved!
    Go to Solution.

    Sorry it took me so long to answer, I've been busy lately....I've found a solution to the problem I mentioned, and just in case anyone has similar problems in the future, I'll shortly describe what happened.
    As Caseyw suggested, it was necessary to enable both network cards through the Measurement and Automation Explorer. The cause of the connections malfunction was actually that I wasn't using the "right" protocol for the Modbus communication, which ran on the secondary adapter. The solution was to use the URL protocol with the correct path on the field, addressing the right IP address. To avoid making this post a mixture of topics, I won't elaborate futher, but I got the gist of it, so if anyone is having similar problems whether it is working with several network cards or with Modbus communication protocols, feel free to contact me, I'll be glad to help.
    Thanks

  • I would like to know how i can merge two pictures together

    I would like to know how i can emerge two pictures together, i want to use one of the pictures as a background and add an element of my other picture which will be transparent

    Good day!
    Please check out this thread:
    http://feedback.photoshop.com/photoshop_family/topics/removing_background_from_image
    Regards,
    Pfaffenbichler

  • Mini Displayport to S-Video using two joined DVI adaptors?

    I have a 13" MacBook with the mini displayport. I am attempting to connect it to an external display (Samsung plasma monitor). I have connected two adaptors together: (minidisplay--DVI) + (DVI--Video), and have tried running both video and S-video cables from that into my Samsung, without success.
    The MacBook does not seem to recognize that anything is connected to the mini displayport; the MacBook screen goes blue very briefly when I plug or unplug, but other than that there is no indication. I have tried powering off, sleeping/waking, and plugging/unplugging on both ends. I know the video input port on the Samsung is good (I believe the S-video port is good but can't prove it), and I know the video cable is good.
    Has anyone had success with this setup? Does joining the two adaptors (both purchased from Apple) create a problem? Or is it set up correctly and an indication that one or both of the adaptors is malfunctioning? Any suggestions appreciated.
    (Note: yes, there is a VGA port on the Samsung, but it's wall mounted and virtually inaccessible. I am using video inputs on side of device).

    With the advent of the Aluminum MacBook, Apple stopped supporting video and S-video out. You will either need to use VGA or else something like this:
    http://www.monoprice.com/products/product.asp?cid=101&cp_id=10114&cs_id=1011407&pid=4724&seq=1&format=2

  • Using two facts of two different star schemas and conformed dimensions

    Hi,
    I've been working as developer and database designer for years and I'm new to Business Objects. Some people says you can not use two facts of two different star schemas in the same query because of conformed dimensions and loop problems in BO.
    For example I have a CUSTOMER_SALE_fACT table containing customer_id and date_id as FK, and some other business metrics about sales. And there is another fact table CUSTOMER_CAMPAIGN_FACT which also contains customer_id and date_id as FK, and some  other business metrics about customer campaigns. SO I have two stars like below:
    DIM_TIME -- SALE_FACT -- DIM_CUSTOMER
    DIM_TIME -- CAMPAIGN_FACT -- DIM_CUSTOMER
    Business metrics are loaded into fact tables and facts can be used together along conformed dimensions . This is one of the fundamentals of the dimensional modeling. Is it really impossible to use SALE_FACT and CAMPAIGN_FACT together? If the answer is No, what is the solution?
    Saying "you cannot do that because of loops" is very interesting.
    Thank you..

    When you join two facts together with a common dimension you have created what is called a "chasm trap" which leads to invalid results because of the way SQL is processed. The query rows are first retrieved and then aggregated. Since sales fact and campaign fact have no direct relationship, the rows coming from either side can end up as a product join.
    Suppose a customer has 3 sales fact rows and 2 campaign fact rows. The result set will have six rows before any aggregation is performed. That would mean that sales measures are doubled and campaign measures are tripled.
    You can report on them together, using multiple SQL passes, but you can't query them together. Does that distinction make sense?

  • How to use two types of fonts in a richtextdocument

    hello,
           i want to print a barcode and some text into  a richtextdocument
    example:
    this.richTextBox1.AppendText("\n");
    Font f1 = new Font("3 of 9 Barcode", 50);
    this.richTextBox1.Font = f1;
    this.richTextBox1.AppendText("*1234554*");
    Font f2 = new Font("Arial", 20);
    this.richTextBox1.Font = f2;
    this.richTextBox1.AppendText("fooo");
    but it always uses the second one?
    how can i resolve this?
    i want to use two types of fonts in the same rich text document.
    thank you very much!!

    Select some text and then set the SelectionFont property for each selection, e.g.:
    this.richTextBox1.AppendText("\n");
    this.richTextBox1.AppendText("*1234554*");
    richTextBox1.SelectionStart = 1;
    richTextBox1.SelectionLength = 9; //End of first word
    richTextBox1.SelectionFont = new System.Drawing.Font("Tahoma", 10);
    this.richTextBox1.AppendText("fooo");
    richTextBox1.SelectionStart = 10;
    richTextBox1.SelectionLength = 4;
    richTextBox1.SelectionFont = new System.Drawing.Font("Arial", 20);
    Please remember to close your threads by marking helpful posts as answer and then start a new thread if you have a new question.

  • How to use two different packages which in  different directories?

    In my progrom, I'm using two differnet packages that in two different directories, but if I use classpath , the program can only be in one environment, so what can I do?

    or you set your classpath to the first common dir they have, and specify the packages from that dir on...
    or you just simply copy (you don't have to move it) the one package together with the other package...
    by the way you can add multiple paths to your classpath...
    between the paths you specify a ";"
    if i'm not mistaken...
    SeJo

  • Can I use two different devices with different apple ID for backing up data on one machine without losing any data that was backed up with one device earlier?

    Can I use two different devices with different apple ID for backing up data on one machine without losing any data that was backed up with one device earlier?

    The link is to a discussion started on 12/18 in the FiOS Internet forum.  Here's the link I get now, however it is different than the link I pulled a few hours ago.  If this system changes the link again, it may not work.
    http://forums.verizon.com/t5/FiOS-Internet/Frustration-and-just-confused-with-internet-help-please/t...
    You can also look for the topic, "frustration and just confused" in the FiOS Internet forum.
    Here's a link that is in the thread that gives more detail.
    https://secure.dslreports.com/faq/15984
    Good Luck!
    P.S.  "Copper Contributor" is my "rank."  gs0b is my user name.
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.

  • How to get OpenSPARC *prom.bin boot files for one core and two threads?

    How can I get OpenSPARC single core two thread files to boot for stand-alone programs and OpenSolaris,
    similar to the release download files
    design\sys\edk\os\OpenSolaris\proto\1c4t_prom.bin and
    design\sys\edk\os\OpenSolaris\proto\1c4t_obp_prom.bin?
    How about for other single core but arbitrary thread counts?
    Thanks,
    sparcMT1

    You can modify the 1c4t machine description files in the directory "softsim/t1_fpga/src/xilinx/configs" to create 1c2t machine description files. You have to modify two makefiles "softsim/t1_fpga/src/xilinx/configs/Makefile" and "softsim/t1_fpga/src/xilinx/prom/Makefile" to create 1c2t prom.bin file. You have to also modify the file "softsim/t1_fpga/src/xilinx/include/xilinx_t1_system_config.h" to specify the threads in the core that are enabled. The parameter that specifies the thread mask is "STRAND_STARTSET". It may be possible to only modify STRAND_STARTSET and use the newly compiled 1c4t prom.bin file. OBP may complain that it couldn't start two threads in the core.
    You can get the source code for the software at the following url
    http://www.opensparc.net/opensparc-t2/downloads.html
    The software is in the "OpenSPARC T2 Processor Download for Architecture and Performance Modeling Tools" package.
    -gopal

Maybe you are looking for