I want to bind a process to  a particular core..

Hi this is my program..each section is doing independent job,i want to bind one section to core1,another to core2..so.on,,,,,,similarly i want to have communication between each section
give me answer it will be helpful....
#include <stdio.h>
#include <omp.h>
int square(int n);
int main(void)
int x, y, z, xs, ys, zs;
omp_set_dynamic(0);
omp_set_num_threads(3);
x = 2;
y = 3;
z = 5;
#pragma omp parallel
#pragma omp sections
#pragma omp section
xs = square(x);
printf ("id = %d, xs = %d\n", omp_get_thread_num(), xs);
#pragma omp section
ys = square(y);
printf ("id = %d, ys = %d\n", omp_get_thread_num(), ys);
#pragma omp section
zs = square(z);
printf ("id = %d, zs = %d\n", omp_get_thread_num(), zs);
int square(int n)
return n*n;
}

SUNW_MP_BINDPROC:
http://docs.sun.com/app/docs/doc/819-5270/6n7c71vdc?a=view
You can also use processor_bind:
http://blogs.sun.com/d/entry/binding_processes_to_processors
Regards,
Darryl.

Similar Messages

  • How to Bind a process to a processor?

    i am working on sun studio 12 & my project is on concept of multithreading.
    i need to know how to bind a process to a particular core?
    whats the command?
    please give me some examples.

    The processor_bind() function can be used to bind a specific [thread, LWP, process, process group, project, virtual machine] to a particular set of cores.

  • Can a message type bind two process codes?

    Hi Experts,
    When I maintain the Partner Profile, I add a message type (ZQM1) as Inbound Parameters. Here I bind a message type ( ZQM1 ) with a process code ( ZQE11 ).
    But Now I want to bind a another process code ( ZQE51 ) with this message type ( ZQM1 ).
    Is this possible? Many thanks.

    Kenneth,
      You  Con't
       See logic
    1. Process code is being assigned to One Function Module (OR ) Program.
        When you assign process code to particular message type  based on your
        changes in Application this Program will get invoked.If  you assign two
        process codes system will get confused to select the program . 
    2. You can Assign one  IDOC TYPE  to 2 message Types.  con't   1message
          type  to 2 IDOC  types.
    Pls. reward if useful

  • I have a image in iPhoto in my macbook pro and i want to take that single image in my iPhone 5, i want to know the process??

    i have a image in iPhoto in my macbook pro and i want to take that single image in my iPhone 5, i want to know the process??

    Hello there, Bhavesh7.
    The following Knowledge Base article offers up some great information in regards to how to sync photos to your iOS device:
    iTunes: Syncing photos
    http://support.apple.com/kb/HT4236
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • I created new table in database and want to bind with system form

    Hi All,
    1) i created new table in database and want to bind with system form .
    2) How i bind this field to system form sale order where i added new folder tab in that i added some fields that fields i want to bind with database. when i click on the next ,previous ,first and last button
    bind value should change.
    Awaiting soon reply
    Rajkumar G.

    hi,
    try this
    Public Sub BindDataToForm()
            Dim oItem As SAPbouiCOM.Item
            Dim oEdit As SAPbouiCOM.EditText
            Dim oComboBox As SAPbouiCOM.ComboBox
            '// getting the matrix column by the UID
            'oItem = oForm.Items.Item("docname")
            'oComboBox = oItem.Specific
            'oComboBox.DataBind.SetBound(True, "OSRI", "BaseType")
            'oItem = oForm.Items.Item("docno")
            'oEdit = oItem.Specific
            'oEdit.DataBind.SetBound(True, "OSRI", "BaseEntry")
            oColumn = oColumns.Item("Code")
            'oColumn.DataBind.SetBound(True, "", "DSCardCode")
            oColumn.DataBind.SetBound(True, "OSRI", "ItemCode")
            oColumn = oColumns.Item("Serial")
            oColumn.DataBind.SetBound(True, "OSRI", "IntrSerial")
            Try
                oColumn = oColumns.Item("Inspection")
                oColumn.DataBind.SetBound(True, "OSRI", "U_Inspection")
            Catch ex As Exception
                MessageBox.Show(ex.Message)
            End Try
            oColumn = oColumns.Item("Quality")
            oColumn.DataBind.SetBound(True, "OSRI", "U_Quality")
            oColumn = oColumns.Item("Status")
            oColumn.DataBind.SetBound(True, "OSRI", "U_Status")
            oColumn = oColumns.Item("Finish")
            oColumn.DataBind.SetBound(True, "OSRI", "U_Finish")
            oColumn = oColumns.Item("Thickness")
            oColumn.DataBind.SetBound(True, "OSRI", "U_Thickness")
            oColumn = oColumns.Item("uom")
            oColumn.DataBind.SetBound(True, "OSRI", "U_NetUOM")
            oColumn = oColumns.Item("length")
            oColumn.DataBind.SetBound(True, "OSRI", "U_Length")
            oColumn = oColumns.Item("height")
            oColumn.DataBind.SetBound(True, "OSRI", "U_Height")
            oColumn = oColumns.Item("sqf")
            oColumn.DataBind.SetBound(True, "OSRI", "U_sqf")
            oColumn = oColumns.Item("sqm")
            oColumn.DataBind.SetBound(True, "OSRI", "U_sqm")
        End Sub

  • I want to bind my client certificate with machine certificate in order to bind user with dedicated one machine. Kindly help

    I have created one dedicated root CA for domain and auto enrollment has been enabled through Group Policy.
    I want to bind my client certificate with machine certificate in order to bind user with dedicated with one machine. In order to prevent duplicate logins

    Hi,
    How about using
    User Rights Assignment?
    You can deny all other users’
    log on locally right on the machine.
    User Rights Assignment
    http://technet.microsoft.com/en-us/library/cc780182(v=WS.10).aspx
    Best Regards,
    Amy Wang

  • I am trying to download video that i purchased from itunes, but everytime i want to resume the process after pausing it, it automatically start the whole downloading process again, how can i eliminate this problem?

    i am trying to download video that i purchased from itunes, but everytime i want to resume the process after pausing it, it automatically start the whole downloading process again, how can i eliminate this problem?

    They don't normally appear in the download screen ... until I attempt to download another movie. Then they just start appearing. If you click edit - a normal movie download has a circle that appears on the left hand side that allows you to select and delete ... these movies don't have that option so you need to find the movie in you list (under movies) and select the download cloud symbol again to stop it downloading ...you may need to do this a number of times before it stops for a while ... or until you try to download a movie then it starts all over again.
    i have logged out of my itunes account. restarted the iPad, removed all movies, restarted the iPad, logged back into my iTunes account and restarted my iPad .... but as soon as I tried to download a single movies ... the other movies started appearing in the downloads again.

  • G510 Application Not Responding. Do you want to end the process?

    I am extremely frustrated with my g510 laptop- so frustrated that I am about to go spend money on a new laptop when then one is only 10 months old.
    Computer boots fine. I start to use it. Doesn't matter what application I am running I get a message box titled Microsoft Windows: Application Not Responding...do you want to end the process.  Doesn't matter what I hit the computer will then not respond.  
    Frustrated with what was going I tried several things...eventually I gave up and just reset the laptop completely to factory and then downloaded the few programs I use and am STILL getting this message.  
    I run Mcaffe Internet Security and the "few programs I use" are Adobe CC for Photographers, Google Chrome and Yahoo Messenger.
    Anyone have any ideas or do I have a $700 boat anchor?
    Solved!
    Go to Solution.

    Hi Amykay74,
    Welcome to Lenovo Community!
    As per the query we understood that you are facing issues with application not responding in your Lenovo G510 laptop.
    As you have mentioned that you are using the MacAfee internet security, try to uninstall the MacAfee internet security and check for the issue.
    Hope this helps. Do post back if the issue persists!
    Best regards,       
    Ashwin. S
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • I want to run background process at plsql program based on the timeout

    Hi
    when it comes to ready state I want to run background process at plsql program based on the timeout
    Thanks and Regards
    ch saivikram

    Thanks dude
    This solution �start java TestClass� works fine �. But it does not solve my problem
    It opens another black window and that black window persist till the life time of my program
    Is it possible application run on complete background without opening another black window �as in Linux

  • Want information about OTC process?

    Hi All,
    I would like to know is there any difference  in between Standard Sales order process and OTC apart from posting?
    Like in Standard we use SO -
    Delivery---Picking -
    PGI -
    Invoice.
    In OTC    SO -
    Delivery---Picking -
    PGI -
    Invoice --- Receivable posting  or I need to correct my process?
    Want information about OTC process.
    Thanks
    Nikhil

    Hi,
    in OTC, it ends with Customer payment.
    You can refer the following links:
    http://www.sap.com/industries/wholesaledistribution/businessprocesses/ordertocash/index.epx
    Pre-sales like QT --optional -->Standard Order -->Delivery >Picking>Packing>PGI>Billing-->Payment of Customer.
    Regards,
    RS.

  • I want to know the process flow in Bill Of Service (BOS)

    I want to know the process flow in Bill Of Service (BOS)

    please refer to link http://scn.sap.com/message/14200963.

  • PPDS: I have a setup matrix in SAP ECC 6.0, and want to transfer the same to APO using Core Interface.

    PPDS: I have a setup matrix in SAP ECC 6.0, and want to transfer the same to APO using Core Interface. Has anyone done it before?

    Hi Subhash,
    Please open this link to see the details:
    http://help.sap.com/saphelp_scm70/helpdata/EN/89/bd3e42ce98033be10000000a1550b0/frameset.htm
    You perform the data transfer in the following sequence:
    Plant
    Setup groups
    Work centers
    Routings
    You check the setup groups in SAP APO.
    You create the setup matrixes in SAP SCM.
    Thanks, Marius

  • Help wanted - step by step process on how to use two ipods on one computer

    I'm just in the process of getting an ipod (waiting on delivery!) and want to know how it is possible to have two ipods using the same computer but synchronizing differently. I don't want to risk losing my partners music (he'll be very upset!) and I don't want to end up with his music on my ipod. I'd appreciate it if someone could give me a step by step guide or tell me where the best place to look for the answer is. Is it possible somehow to have two different libraries on one computer? Is that how it works?

    There are a couple of methods for using more than one iPod on a single computer. Have a look at the article linked below. Method one is to have two Mac or Windows user accounts which by definition would give you two completely separate libraries. Method two as Chris has already described above is to set your preferences so each iPod is updated with only certain playlists within one library. Have a look anyway and see what you think and go for whichever you feel suits your needs best: How To Use Multiple iPods with One Computer

  • I want to implement "return process"

    gurus
    i want to customize the return process of the materials.what config required. tell me step by step guidence so as to develop these things.please step by step each and every setting required.i want total guidence to develop this scenario. explain in detail.

    Returns Order
    In this step, you define shipping-specific data for the returns order. You make settings for the required return delivery type for
    purchasing document category F (purchase order),
    purchasing document type
    NB - standard purchase order
    UB - stock transport order
    the supplying plant
    Recommendation
    You can use the return to vendor function without making any additional settings here. To be able to use the store returns function you have to make the necessary settings in the corresponding IMG activity
    Returns to Vendor
    In this step, you define shipping-specific data for returns to vendor, which is the return delivery of goods to an external vendor.
    You can use the return to vendor function without making any additional settings here. However, if you create shipping documents for the return delivery to the vendor, and if you want to use other delivery functions too, then you have to make settings for the required returns delivery type.
    Requirements
    Prerequisites for returns to vendor with shipping processing include:
    Flagging the vendor (in the purchasing data) with the indicator "Ret. with shipping proc."
    Entering customer data for the vendor
    The system must be able to find a shipping point for the supplying plant (that sends the goods back to the vendor).
    Activities
    Assign the appropriate returns delivery type to
    purchasing document category F (purchase order),
    purchasing document type NB (standard purchase order) and
    the supplying plant
    Returns delivery type "RL", which already exists in the system, is suitable for this.
    Further notes
    When using SAP Retail, stores (generally, supplying plants that are not distribution centers) usually do not have a shipping point. You have to make the appropriate settings for this in Customizing under Assign shipping point - plant and Assign shipping points.
    When making these settings, ensure you adhere to the shipping conditions (for which you made settings in the vendor customer data) and the loading group settings (which you made for the material that is to be returned).
    You do not need to determine a returns delivery type for the return to vendor for purchasing document type "UB" (stock transport order).
    You cannot use the return to vendor function in the following scenarios:
    return delivery of goods to a plant
    Store Return / Return Plant to Plant
    In this step, you define shipping-specific data for the store returns, which is the return delivery of goods from one plant to another.
    Example
    In SAP Retail, plants are referred to as distribution centers or stores. With store returns, you can map the return delivery of goods from
    a store to a distribution center (this is the most common case),
    from one distribution center to another distribution center,
    from one store to another store,
    from a distribution center to a store (although this is not very common).
    Requirements
    For the return delivery types, you have to make settings for the item category determination.
    Partner schema must be assigned to the return delivery types.
    The relevant goods movement types must be assigned to the schedule line categories (for the returns in Sales). The following schedule line categories are also available in the system:
    NR - Replenishment Returns and
    NS - Replenishment Cross Company Returns
    Activities
    Assign the required return delivery type to
    purchasing document category F (purchase order),
    purchasing document type (NB - standard purchase order, UB - stock transport order),
    the supplying plant (the one to which the goods are being returned)
    The following return delivery types are available in the system:
    NLR - intra-company-code store returns (purchasing document type UB for replenishment and return orders, delivery type NL for the replenishment delivery)
    NCR - cross-company-code store returns (purchasing document type NB for replenishment and return orders, delivery type NLCC for the replenishment delivery)
    Further notes
    When using SAP Retail, stores (generally, supplying plants which are not distribution centers) usually do not have a shipping point. You have to make the appropriate settings for this in Customizing under Assign shipping point - plant and Assign shipping points.
    When making these settings, ensure you adhere to the shipping conditions (for which you made settings in the customer data for the plant that is returning the goods) and the loading group settings (which you made for the material that is to be returned).
    Regards,
    Indranil

  • Want to know the Processed Messages Size in XI server

    Hi,
      I want to know about the Processed messages  size  per month at my PI server  . Per day theer are more than 50,000 mesages are processing and  each message size averagely 10 KB . But I want to Know  exactly How much GB it has Exchanged  throgh  my PI server at last month.  For this where can we check this.
    I had tryd using teh Performance Monitoring at RWB . but it is giving Interface wise or some average size. But i want the exact cummulative  size for day wise and Month wise.
    I steher any way to check this at OS level. ?
    please help me regardiong this.
    regards
    Jain

    Goto RWB -
    > performance monitoring -
    > give display as overview aggregated , time interval and aggregation interval as 1 month.
    this will give the result u want....dnt give interface name...
    Regds,
    Pinangshuk.

Maybe you are looking for

  • Acrobat 9 keeps changing itself to be the default PDF reader

    Hello all, I have CS4 installed including Acrobat Pro. I prefer to use Foxit reader as my default for reading PDF files. However, when I change the default program for PDF files to be Foxit, Acrobat changes it back to itself. I am running Windows 7 P

  • Problem with CFDOCUMENT

    I upgraded to CF 7.0.2. My requirement is to convert .doc/.pdf/.xls to Flashpaper. I used <cfdocument format=Flashpaper" src="d:\test.doc" mimetype="application/msword" /> The Flaspaper does generate but it displays junk. Is it related to charsets? A

  • JSF with TILES and HTML-Code

    Hello! I have a pure JSP-project using tiles. Now I want to migrate to JSF and find some problems. When I use my existing layout and include the different JSPs I have no problem as long I have a single f:view in every jsp file is used. When I try to

  • Debit/Credit Indicator for Transaction 'FRL'

    Dear all, In subcontract flow, I would like to separate account determination (split from Return flow) for Debit/Credit in Transaction 'FRL' External activity. But it is not possible in SAP setting that status of 'Debit/Credit indicator is "Not chang

  • Computer is slow when plugged in

    Hello, I have this strange issue with my computer. When I connect my Power Adapter to computer, the computer will be very slow. If I remove the Power Adapter, everything runs normal. This was not the case earlier, and it just worked fine. I started f