How do I run the same process on multiple CPUs  of a processor set?

Hi,
I am working on UltraSPARC T1 Processor. My development environment is SunStudio 12 running on Sun Solaris 10 OS.
I want to run the same process concurrently on 4 hardware threads that belong to one core.
I used pset_create() for creation of the processor set.
Later I assigned 4 processors (that belong to one core) using pset_assign().
I used fork() to create a child process and used execv() to assign a new process.
I used pset_bind() to bind this new process to processor set created earlier.
When we are executing the program we observe that the process is running in only the first processor (hardware thread) of the assigned processor set.
How do we make all the processors of the processor set run the same process?
Thanks in advance.
Nesa Rani

Hi Mark,
With this communication based on CAN whilst all of the data is available on the network arbitration IDs are still used to address the individual PCs so I believe you will need to explicitly send the data to each PC to get the data across all three.  The other option would be to have one PC acting as a data server making the data available through a network interface such as shared variables.  This may be simpler to implement and also easier should you need to scale it up.
Regards,
James Mc
========
CLA and cRIO Fanatic
wiresmithtech.com/blog

Similar Messages

  • Re: Running the same (Forte) application multiple times -for different

    Hi
    We had the same problem - how to deploy a number of identical applications, using each their own db.
    (for training).
    The solution we used is to wrap the entire application into different applications by using a very small
    module called KURSUS01, KURSUS02 etc, that did nothing but call the start procedure of the main app.
    Then in the dbsession connect, we made a call appname to get the application name, and appended the
    first 8 chars to the dbname. Thus our dbnames now points to logicals name: rdbdataKURSUS01, rdbdataKURSUS02 etc.
    All this allows us to deploy the identical apps in the same env, or change one version, and run both the old
    and new program on the same pc and server at the same time (eg. KURSUS01 and KURSUS02).
    I also think this is a kludge - but it works nicely!
    Jens Chr
    KAD/Denmark
    -----Original Message-----
    From: Haben, Dirk <[email protected]>
    To: 'Soapbox Forte Users' <[email protected]>
    Date: 15. januar 1999 09:41
    Subject: Running the same (Forte) application multiple times - for different business clients.
    Hi All
    We have a number of different business clients all willing to use our
    application.
    The (forte) application is to run on our machines etc for these (business)
    clients.
    All (business) clients will have their data kept in separate Oracle DBs
    (instance).
    The problem now is that the entire (forte) application is written using
    DBSessions.
    Now, depending on what business client needs to be serviced (so to speak) we
    need to attach to the right DB - or use the "right" SO.
    The two options we can think of are:
    Option1:
    Programatic change to somehow "know" what (business) client (DB) I'm talking
    about and then use the right DB.
    Pro:
    Only one forte environment to maintain
    Can run multiple (business) clients on same PC at the same time
    Con:
    Requires many program changes
    bending O-O rules(?)
    can't dynamically name SOs so can it be done at all? (ResourceMGRs maybe?)
    Option2:
    Use separate environments! One for each business client.
    Pro:
    More defined separation of app and data,
    SLA-easy
    Con:
    Maintain "n" number of environments
    Can only run the application for one environment (business client) at a time
    on one PC - Big Negative here!
    Not knowing any feasible solution to option 1 (without much code changes and
    developer moaning) I would go for option two; as I have already worked on
    multi-environment setups on VMS back at the Hydro (hi guys).
    I would appreciate any comments from anyone who has solved this problem.
    How, Why Pro Con etc.
    TIA,
    Dirk Haben
    Perth, WA
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Hi
    We had the same problem - how to deploy a number of identical applications, using each their own db.
    (for training).
    The solution we used is to wrap the entire application into different applications by using a very small
    module called KURSUS01, KURSUS02 etc, that did nothing but call the start procedure of the main app.
    Then in the dbsession connect, we made a call appname to get the application name, and appended the
    first 8 chars to the dbname. Thus our dbnames now points to logicals name: rdbdataKURSUS01, rdbdataKURSUS02 etc.
    All this allows us to deploy the identical apps in the same env, or change one version, and run both the old
    and new program on the same pc and server at the same time (eg. KURSUS01 and KURSUS02).
    I also think this is a kludge - but it works nicely!
    Jens Chr
    KAD/Denmark
    -----Original Message-----
    From: Haben, Dirk <[email protected]>
    To: 'Soapbox Forte Users' <[email protected]>
    Date: 15. januar 1999 09:41
    Subject: Running the same (Forte) application multiple times - for different business clients.
    Hi All
    We have a number of different business clients all willing to use our
    application.
    The (forte) application is to run on our machines etc for these (business)
    clients.
    All (business) clients will have their data kept in separate Oracle DBs
    (instance).
    The problem now is that the entire (forte) application is written using
    DBSessions.
    Now, depending on what business client needs to be serviced (so to speak) we
    need to attach to the right DB - or use the "right" SO.
    The two options we can think of are:
    Option1:
    Programatic change to somehow "know" what (business) client (DB) I'm talking
    about and then use the right DB.
    Pro:
    Only one forte environment to maintain
    Can run multiple (business) clients on same PC at the same time
    Con:
    Requires many program changes
    bending O-O rules(?)
    can't dynamically name SOs so can it be done at all? (ResourceMGRs maybe?)
    Option2:
    Use separate environments! One for each business client.
    Pro:
    More defined separation of app and data,
    SLA-easy
    Con:
    Maintain "n" number of environments
    Can only run the application for one environment (business client) at a time
    on one PC - Big Negative here!
    Not knowing any feasible solution to option 1 (without much code changes and
    developer moaning) I would go for option two; as I have already worked on
    multi-environment setups on VMS back at the Hydro (hi guys).
    I would appreciate any comments from anyone who has solved this problem.
    How, Why Pro Con etc.
    TIA,
    Dirk Haben
    Perth, WA
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • How do I add the same description to multiple photos in the new photos app

    How do I add the same description to multiple photos? I could do this in iPhoto but I do not see a way to do it in Photos for OS X. This is a handy feature to have.

    This link asks the same question,  https://discussions.apple.com/thread/6994338?searchText=How%20do%20I%20add%20a%2 0description%20to%20multiple%20photos?
    Someone shows the method to use AppleScript/ Automator to make Photos add the same description to multiple photos. I just opened up AppleScript editor and poked around the Dictionary for Photos and saw we have access to GPS longitude,latitude and altitude. So by using a third party app/web page to get those values, an Apple Script could be used to batch add the info to selected photos. That being said, I'm really busy these days and lack time to write scripts and migrate to photos.

  • How can I apply the same crop to multiple photos?

    It is easy to apply the same Adjust settings to multiple photos by using the Copy and Paste in the Adjust pane. Or by using iPhoto Batch Enhancer.
    But can you apply the same crop to multiple photos? I don't see any way to copy a crop. iPhoto Batch Enhancer can do something like it but, being an external editor, it does so on a copy of the photo. I want it on the original photo. (Well, it's not really the original since that one is saved separately in the Library but on the current version).
    Thanks for any suggestion.
    Bo

    Here's how:
    1 - bring up the first photo in the edit window and click on the Crop button or *use the "C" key on the keyboard*.
    2 - set the crop size/ratio in the menu and position the crop window over the photo as needed.
    3 - click the Apply button or *use the Enter key*.
    4 - click on the right arrow in iPhoto or *use the right arrow key on the keyboard* to bring up the next photo.
    5 - click the "C" key to bring up the crop function.
    6 - repeat steps 2 thru 5 for each photo.
    This video screenshot shows how:
    Click to view video screenshot
    Happy Holidays

  • How can I edit the same photo in multiple LR catalogs?

    Hi Forumworld,
    I would like to edit the same photo in multiple LR catalogs. Before you say "don't", there are many reasons why I'd like to do this. I am a working professional photographer and LR is one of the many tools in my workflow. I essentially want to organize my catalogs according to two different principles: once by year and once by theme. As in, a catalog each for 2014, 2015, 2016. But also one where I can group all of my wedding photos, for instance. I have several reasons for not throwing all of them together into one catalog.
    I know that LR is essentially non-destructive, making this an uphill battle. But: if I do something like set all LR catalogs involved to Automatically Write Changes into XMP, should that a) be visible by any catalog and b) sync properly? As in: once the photo is imported to both Catalog A to Catalog B, can I edit it in A and see those changes - including developing, but also flagging etc. - in B? And vice-versa?
    Thanks for your help,
    Adam

    Hi All,
    thanks for the various answers. I've considered most of what was written already, but the gem in all this that I was looking for was from John's answer:
         You will also lose some of your work (xmp doesn't record flags, stacking, virtual copies, history steps...). So for one thing you specifically mentioned, flagging, you can't sync it across multiple collections
    This is consistent with what I've experienced - I wanted to find out if there was a way to not loose some of my work. The goal was to find a way that everything would sync automatically & properly so that I would always access the identical image from various catalogs. This is what I thought XMP would do - but I experienced that it didn't and now I understand that it won't do it properly, regardless of the settings. Flags were exactly the piece of information I was missing when I tried this.
    I am surprised that everyone is telling me to use one Catalog. I am sorry but I don't believe that it will scale - because that is not what I have experienced. When my LR4 catalog got to about 50,000 images, it slowed down dramatically.  Has something big changed in LR5? I have read many threads about this, most seem to say that already in LR4 it shouldn't have slowed down, but it did. No, my hard drive wasn't full. I just shoot a lot, mostly with a D800.
    Thanks,
    Adam

  • 1 app, 3 devices, 1 iCloud - how can I run the same game on different devices?

    My wife and I share one iTunes account and one iCloud account for 2 iPhone 5's and an iPad.  Our home laptop is a PC running windows 7.  We are not able to both play the same game (specifically Carcassone) at the same time on different devices which is frustrating, how can I make this happen?  Do I need two separate accounts?  Can I have two accounts with a PC?  We don't want to sacrifice the photostream to get it though.
    Thank you,
    Jacob

    Go to iTunea>Preferences>Devices and see if there is a backupright at the time you did the update. Then try restoring from that backup. If the apps are in your iTunes library, any app data will be restored to the iPod.
    When restoring from an iOS 4 (or later) backup, if the device had a passcode set, iTunes will ask if you want to set a passcode (and remind you that you had protected your device with a passcode). iTunes will not ask you to set a passcode when restoring from iOS 3.x and prior backups.
    Therefore, remembe the passcode that you enter this time.
    It appears that if you restore from a backup, that backup is not subseqyently overwritten by the next backup.

  • How to run the same SSRS report multiple times, each time with a different parameter value?

    Hi,
    I have an SSRS report that produces a list of invoices for a single supplier (so supplier is a parameter specified at runtime). The report is based on a stored procedure in SQL. I would like to make things easier and instead of going through all suppliers
    one by one, I want to have a single action, which produces separate reports, per supplier, for all suppliers that have an outstanding invoice (so not all suppliers on the system as a whole but all suppliers that are within the result set of the stored procedure).
    I assume this would mean first executing the stored procedure to find all suppliers that have invoices at the time. And then running the report multiple times, once for each supplier, where the supplier value is used as the parameter every time. ideally
    this would open separate webpages with a single report per page. (I am creating a button in another software, which is simply launching iexplore.exe and passing a
    fixed SSRS report URL).
    What would be required? I have SQL 2012 and I am building this in Report Builder 3.0.
    Thank you!
    Dimitar
    P.S. What about still running ONE report, but every supplier starting on a new page? Is that more realistic? So supplier will not be a parameter any more, but just something that creates a new page on the report?

    What
    about still running ONE report, but every supplier starting on a new page? Is that more realistic? So supplier will not be a parameter any more, but just something that creates a new page on the report?
    Yes thats a much better option. Its very easy to generate such a report in SSRS. You dont need a parameter
    in that case but just needs to add Supplier as a grouping field in the tablix. Then add other columns and groups if required. Select option set page break after each instance of the group for first grouping (ie based on supplier field). Then report will render
    with one page per supplier. On exporting to excel also each supplier data goes to a different tab
    Here's a similar requirement I did for one of my projects
    http://visakhm.blogspot.in/2013/10/using-ssrs-to-export-sqlserver-data-to.html
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • How do you apply the same transformation to multiple layers?

    I've been using PS for years and never had to do this before.
    I have a 3D image of a tradeshow exhibit and I want to drop in a lot of different mocks for backgrounds. The 3D is in a slight perspective and I need to transform all the mocks to fit that space.
    So how do I link my backgrounds and apply the same "skew" or free transform to all of the layers?
    PS version CC 14.2.1 x64

    What exactly am I alt+dragging?
    My mistake.  I was thinking about filters and alt-dragging them to a new layer.  For a transform, you most likely will want to make one master SO, apply the transformation, then make duplicates via copy from the layer flyout menu.  Then you can replace the content with the other layers.

  • How do I send the same email to multiple addresses from my address book?

    I need to send the same email to many people on a regular basis. I especially entered all my contacts in the address book. Now I find out that I can only click on one of my contacts email address to create a new message. But I need to send 1 email to about 50 people. How do I go about this?

    Firefox has no email features, if you are using a webmail service in Firefox you need to ask the support for the webmail service. Any email features will be part of the webmail service.
    If your question is about Thunderbird, you can ask in one of these forums:
    * http://forums.mozillazine.org/viewforum.php?f=39
    * http://getsatisfaction.com/mozilla_messaging

  • How can I apply the same filter to multiple inboxes?

    I am looking at transitioning from Outlook to Thunderbird -- mostly for the Google calendar integration.
    The one thing I am having problems with is the filters. I have multiple email addresses and I would like to be able to apply one filter to all of the email addresses. Ie: I get an email from Bob sent to me on my email address 1 and the email goes to bob's folder. Then I get an email from Bob on my email address 2.
    I would like to have the same rule to be effective for both of my email addresses so if bob uses either email address, the mail goes to bob's folder.
    Right now it appears that I have to create a unique filter if I get email from 'bob' on email address 1 vs email address 2. Am I missing something?

    Nope. Thunderbird's filters are specific to accounts.
    You could set them up in one account, then copy that account's ''msgFilterRules.dat'' file to your other accounts.

  • How do I make the same changes to multiple photos at one time?

    Such as image size or filtering...

    It would probably depend on which version of Photoshop your are using.
    With CS6 you could create an action to apply the filter.
    Then use File/Scripts/Image Processor to change the size and apply filter action.
    Don't know about CC or CC2014.

  • How do I send the same email to multiple people?

    I have created some folders in Mail and one has about 387 emails in it that I've received. How can I send one email out to all 387 of them without doing them all one at a time?
    Thanks.

    I believe you will have to use AppleScript or Automator to extract all the e-mail addresses from the selected messages, then add those to a new outgoing message. If you're not sure how to do that, try asking over on the [AppleScript forum|http://discussions.apple.com/forum.jspa?forumID=724].
    Also, note that most e-mail servers apply limits to the number of different addresses you are able to send to at one time. Some have limits for single messages, limits per hour or per day, etc. Check with your e-mail provider to be sure this message will be sendable. And make absolutely sure all those addresses are on the Bcc line, otherwise everyone will be able to see addresses for everyone else you sent to, which will not be appreciated by some.

  • How do I use the same SubVIs in the different VIs? Those VIs have to run at the same time.

    Hello,
    If I have two VIs.And both of them has the same SubVIs.
    For example
    VI1 contains:
    SubVI1: Initialize Instrument
    Data acquisition
    SubVI2: Close Instrument
    VI2 contains:
    SubVI1
    Monitoring the Board and VI1
    SubVI2
    When I run those two VIs at the same time, why can't I use SubVI2(which is in the VI1) to close the Instrument?
    The function has been run correctly, but it didn't work. The VI1 did closed, but the instrument didn't closed, neither did data acquisition.
    In order to close instrument, I have to run SubVI2(which is in the VI2).
    What I want to do is that when I run SubVI2(which is in the VI1), then, the instrument closed and data acquisition stopped.
    Is there any problem between the thread? Or anything wrong with SubVI's VI property?
    Thanks a lot!

    Hi, everyone
    Thanks!
    It seems that I didn't solve this problem, but now I maybe understand why it happened.
    GerdW  said:
    Why do you want to initialize an instrument in 2 different places?
    Why do you want to close an instrument in 2 different places?
    Graziano  said:
    i guess the problem is that, running two times SubVI1 you initialize instrument two times (it is not desirable...), and, worst, running SubVi2 you close instrument twice!
    That makes me think about the number of doing init & close. My project calls on that there must be a strict requirements about the number of calling those function in one process.
    That is to say,when running them, if VI1 and VI2 are in different process but not in the same one, the program is going to run successfully. But now, VI1 and VI2 are threads which in the same process, so my project's strict requirements makes them run failue.I used SPY++ to analysis, and found those two threads are actually in one process.
    Graziano  said:
    I suggest to put SubVI1 and SubVI2 outside VI1 and VI2, and you run them once, at the start and stop of your measurement.
    I believe that is a good idea, I can deal the problem in this way. Thank you!
    But if anybody has the idea which can deal with the problem between the threads, I will be so glad......
    What does that called, Synchronized between threads.....maybe......
    To altenbach
    I am afraid showing the code doesn't work, because all the VI SubVIs and code is base on the japanese system.and all of them must call the functions form DLL which is protected by my company. I am sorry about that......
    Thanks a lot!! Everyone.

  • How can I run the report for different input values at the same time?

    Reports version: Report Builder 6.0.8.13.1
    Oracle version: Oracle8i Enterprise Edition Release 8.1.7.0.0
    I want to run the same report for different input parameter values and spool each o/p to different file and ftp to a server. For this, as a first step, I am spooling different input values in to a file, reading those values through a loop and calling the report for that input values. Each report run/execution is taking 15 minutes. Total report execution is taking approximately 4 hours (assuming 16 different input values) to complete. So I have to wait 4 hours to see ALL outputs.
    I would like to run the report parallel for ALL the input values and I should be able to see the ALL outputs with in 15 or 16 minutes.
    In my shell script, I added & symbol at the end of the report call to start/run the job in the background. Due to this the control passed to the next step after the report call. At this place I have an ftp command to send the output file to a different server and it is giving error some thing like “o/p file is not available/created yet". This is due to the fact that report writer is NOT yet completely started/initiated or it is NOT completed the spooling.
    How can I run the report at the same time for all the input values and save the time?
    Thanks in advance.
    Kishore.

    Increase the number of server engines running right now it seems there is only one engine running ,increase it to 4 or 6
    and then atleast 4 or 6 reports will run simultaneously.
    For FTPing the output add to your sript to check whether it is locked and if not then only try to ftp .
    Also for more better functionality read the document (chapter 15 ) for 10g reports for its new fuinctionality.
    http://download.oracle.com/docs/cd/B14099_17/bi.1012/b14048/toc.htm
    Thanks
    Subodh

  • How to run the same report at report runtime?

    i have this report that is automatically run when choosing the icon at reports runtime.
    its it possible that i can run the same report without having to exit the runtime?! can i display the run button on the toolbar?
    i need help on this! thanks

    What
    about still running ONE report, but every supplier starting on a new page? Is that more realistic? So supplier will not be a parameter any more, but just something that creates a new page on the report?
    Yes thats a much better option. Its very easy to generate such a report in SSRS. You dont need a parameter
    in that case but just needs to add Supplier as a grouping field in the tablix. Then add other columns and groups if required. Select option set page break after each instance of the group for first grouping (ie based on supplier field). Then report will render
    with one page per supplier. On exporting to excel also each supplier data goes to a different tab
    Here's a similar requirement I did for one of my projects
    http://visakhm.blogspot.in/2013/10/using-ssrs-to-export-sqlserver-data-to.html
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

Maybe you are looking for