Difference between co-routine and thread?

hi,
i keep bumping into people who talk about co-routines? does anyone know if there is any difference between this and a thread (internet definitions don't seem to suggest so..), if there is no difference is this just a historical term? is it tied to any particular platform/language?
thanks,
asjf

i keep bumping into people who talk about co-routines?How old were they? -:) The term is mix betweenvconcurrent and subroutine. A co-routine starts running
in its own thread when called.Its own thread you say? Luxury! Pure luxury! Coroutines existed before multiple threads existed.
All coroutines were marked 'runnable' at startup and when one (and the only) running coroutine wanted
to relinguish control of the processor it had to say so explicitly by calling some 'yield' command.
This command was the entry point to a primitive scheduler that randomly picked another runnable
coroutine; the latter had to 'yield' somewhere in the near future to keep the whole shebang running.
In those days there were no multiple threads; Luxury! Pure modern luxury! And in those days computers
were made of wood and I am not old! ;-)
kind regards,
Jos ( <--- not old )

Similar Messages

  • Difference between Start Routine  and End Routine in Transformations

    Hi  Friends,
      I'm using BI 7.0... here in Transformations step  we have two options..that is START ROUTINE... and END ROUTINE... What is the Difference between Start Routine  and End Routine in Transformations..
       When  we go for Start Routine.. and when we go for End Routine..
    Plz clarrify... points will be rearded..
    thanks
    babu

    Hi,
    One real time scenario for End Routine.
    We have a scenario where in a datasource field is mapped to three infoobjects on the datatarget side. There are 2 key figures which need to get data after these these Infoobjects are filled. The best place for this to happen would be in a End Routine, where in we would loop through the results package and using the values of the infoobjects from the data target ( Cube in this case).
    Hope this helps,
    HD

  • Difference between LockSupport.parkUntil and Thread.sleep method

    Hi
    Could someone please explain the difference between LockSupport.parkUntil and Thread.sleep methods.
    Thanks in advance.

    javaLearner wrote:
    The thing that I am trying to understand is - the difference / correlation between the two methods mentioned.
    In the javadoc, there is a mention of correlation between the LockSupport methods park, unpark and the Thread methods suspend, resume - but not park and sleep.Then that suggests that there isn't any difference /correlation -- whatever you meant by that. Perhaps your question is like asking for the difference between a fish and a bicycle.
    Also, I would like to understand the statement
    These methods are designed to be used as tools for creating higher-level synchronization utilities, and are not in themselves useful for most concurrency control applications. (from the javadoc)Again, you're going to have to explain what you don't understand about it.

  • Difference between Application.CurrentCulture and Thread.CurrentCulture

    Can someone tell me the difference between Application.CurrentCulture and Thread.CurrentCulture.
    Thread has CurrentCulture and CurrentUICulture. But Application has only CurrentCulture. Why?
    (https://msdn.microsoft.com/en-us/library/system.windows.forms.application.currentculture(v=vs.110).aspx)
    (https://msdn.microsoft.com/en-us/library/system.threading.thread.currentculture(v=vs.110).aspx)

    1)
    Application.CurrentCulture delegates to Thread.CurrentThread.CurrentCulture("Gets or sets the culture information for the current thread") so it only sets it for the main thread of the
    application.
    2) They are both properties of a Thread object, which you can access via Thread.CurrentThread.
    CurrentCulture – Tells you the user’s current locale, as set in the Region
    applet.  I.e.: Where is the user located?
    CurrentUICulture – Tells you the native language of the version of Windows
    that is installed.  I.e.: What language does the user speak?
    The user can change CurrentCulture using the Region applet.  It’s used to determine formatting for numeric and date/time
    strings.
    Rachit
    Please mark as answer or vote as helpful if my reply does

  • I'd like to know the difference between Flat view and Threaded view in the forum.

    anyonw know?
    discussion view style and comment view style
    any difference? i have not noticed any

    threaded view will not display posts which are replys to other posts in the main view
    only when you click on the original post will you see them

  • Is difference between update routine,start routine and transfer routine

    Hi All,
    What is difference between transfer routine and update routine.

    Hi Venkat,
    Routine is a set of ABAP code which is used to select a record or transform the field value at the time of loading the data.
    Types of routines:
    Tranfer Routines in Transfer Rules:
    Start Routines in Transfer Rules:
    Update Routines in Update Rules:
    Start Routines in Update Rules:
    Transfer/Update routine:
    It's the set of ABAP code used in Transfer/Update rules. Transfer/Update routine is used to change the value of a particular field/object at the time of loading data.
    Ex: Populate the amount/discount field by using Price and Quantity based on the given conditions.
    Start Routine:
    Start routine can be used in both Transfer Rules and Update Rules. Start routine is used to determine whether to load a particular record or not.
    Ex: From the data related to the year 2005, we can select only the records which belong to a particular month or fiscal period.
    Ultimately Transfer/Update routines are to update the value of a particular field. Start routines are used to select entire record.
    You can get more details about routines at :
    Routines
    ROUTINES
    Routines and Examples
    Start Routines
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/60cecb1d-0a01-0010-8289-b14fd99062fa
    take a look this doc for abap used in bw
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/4493c4a6-0301-0010-62a2-efd6ded61e04
    ABAP book that always mentioned :
    http://cma.zdnet.com/book/abap/
    assign points if useful ***
    Regards
    CSM Reddy

  • Difference between v$instance and v$thread

    Hallo,
    What is the difference between v$instance and v$thread?
    Thanks,

    Well, a mere description of the views in the official documentation isn't going to actually help you very much more than you could do with a simple "desc V$instance/desc V$thread", I suspect.
    The answer I think you might be looking for is that a thread is not the same thing as an instance. In fact, we usually talk about "a thread of redo", which gets much closer to the issue here. Yes, it is true that one instance can only generate one 'thread of redo', so one instance = one thread, and there's a temptation to extrapolate from that and assume they're the same thing.
    But they're not. An instance is a set of memory structures and processes. It has a name. It gets started and stopped. In can be running in various states (nomount, mount, open, read-only, primary, secondary etc).
    A thread of redo is a history of redo generated by an instance. It has ever-incrementing checkpoint change numbers, times of last checkpoints, sequence numbers, blocks of redo that are forever being flushed to different parts of the current redo log. And so on.
    Thus, V$INSTANCE tells you the state of the instance and V$THREAD tells you all you could ever want to know about where you're up to in the writing-redo stakes.

  • Re: Difference between user-exits and enhancements

    Hi ,
    Can any one explain the difference between user-exits and enhancements with an exmpale.
    I will give u full points.
    thanks&regards,
    Bhushan-karra.

    Hi,
    User exit - A user exit is a three character code that instructs the system to access a program during system processing.
    SXX: S is for standard exits that are delivered by SAP. XX represents the 2-digit exit number.
    UXX: U is for user exits that are defined by the user. XX represents the 2-digit exit number
    Customer exit - The R/3 enhancement concept allows you to add your own functionality to SAP’s standard business applications without having to modify the original applications. SAP creates customer exits for specific programs, screens, and menus within standard R/3 applications. These exits do not contain any functionality. Instead, the customer exits act as hooks. You can hang your own add-on functionality onto these hooks. *-- Mani
    The following document is about exits in SAP :-
    The R/3 enhancement concept allows you to add your own functionality to SAP’s standard business applications without having to modify the original applications.
    SAP creates user exits for specific programs, screens, and menus within standard R/3 applications. These exits do not contain any functionality. Instead, the customer exits act as hooks. You can hang your own add-on functionality onto these hooks.
    Types of Exits
    There are several different types of user exits. Each of these exits acts as hooks where you can attach or "hang" your own add-ons.
    Menu Exits
    Menu exits add items to the pulldown menus in standard SAP applications. You can use these menu items to call up your own screens or to trigger entire add-on applications.
    SAP creates menu exits by defining special menu items in the Menu Painter. These special entries have function codes that begin with "+" (a plus sign). You specify the menu item’s text when activating the item in an add-on project.
    Screen Exits
    Screen exits add fields to screens in R/3 applications. SAP creates screen exits by placing special subscreen areas on a standard R/3 screen and calling a customer subscreen from the standard screen’s flow logic.
    Function Module Exits
    Function module exits add functions to R/3 applications. Function module exits play a role in both menu and screen exits.
    When you add a new menu item to a standard pull down menu, you use a function module exit to define the actions that should take place once your menu is activated.
    Function module exits also control the data flow between standard programs and screen exit fields. SAP application developers create function module exits by writing calls to customer functions into the source code of standard R/3 programs.
    These calls have the following syntax:
    CALL CUSTOMER-FUNCTION ‘001’.
    Field Exits
    Field exits allow you to create your own programming logic for any data element in the Dictionary. You can use this logic to carry out checks, conversions, or business-related processing for any screen field. Example: The data element BBBNR identifies a company’s international location number. You might want to set up your R/3 System so that all international location numbers are larger than 100.
    The field exit concept lets you create a special function module that contains this logic.
    You assign the special function module to the data element BBBNR. You then assign the module to any programs and screens in which users can add new international location numbers. When you activate your field exit, the system automatically triggers your special routine whenever a user enters a company location number.
    Check these links for more details -
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/1978b543b111d1896f0000e8322d00/frameset.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://sap.niraj.tripod.com/id21.html
    If this answers your question, please close the thread.
    Check this link also,
    https://forums.sdn.sap.com/click.jspa?searchID=5924777&messageID=3801056
    Thanks,
    Reward If Helpful.

  • What is difference between bex analyser and bex browser

    what is difference between bex analyser and bex browser . please explain what are use of both and what we do in both.

    hi
    Bex Browser
    The Business Explorer Browser (BEx Browser) makes it possible for you to access all document types of the Business Information Warehouse that are assigned to your role or that you have stored in your favorites. You can select and open documents assigned to you in the BEx Browser or store and manage new documents in the BEx Browser.
    Document types that you can work with in the BEx Browser are:
    · BW workbooks
    · Documents that are stored in the Business Document Service (BDS)
    · Links (references to file system, shortcuts)
    · Links to internet sites (URLs)
    · SAP transaction calls.
    · Web applications and Web templates
    · Crystal Reports
    Bex Analyser
    The Business Explorer Analyzer (BEx Analyzer) is the analysis and reporting tool of the Business Explorer that is embedded in Microsoft Excel.
    Features
    You can call up the BEx Query Designer in the BEx Analyzer, in order to define queries. Subsequently, you can analyze the selected InfoProvider data by navigation to the query created in the Query Designer and create different query views of the data. You can add the different query views for a query or for different queries to a work book and save them there. You can save the workbook in your favorites or in your role on the BW Server. You can also save the workbook locally on your computer.
    Beyond that, you can precalculate the workbook and distribute it by e-mail to recipeients or you can export it to the Enterprise Portal and make it accessible to other employees in the company.
    You can start queries in a standard view (with a Standard Web Template set up in Customizing) in the Web browser and forward the URL or continue to navigate on the Web. Similarly, you can export the Web query to MS Excel 2000.
    Overview of the Functional Area of the BEx Analyzer:
    ·        BEx toolbar
    You access the functions of the BEx Analyzer from the BEx toolbar, which takes you to the BEx Open dialog box where you can open existing queries, or to the BEx Query Designer where you can create new queries or change existing queries.
    ·        Evaluating Query Data
    The BEx Analyzer offers convenient functions for evaluating and presenting InfoProvider data interactively. In the BEx Analyzer, you can add queries to workbooks, navigate within them and refresh the data. You can also process the queries further in Microsoft Excel or display them in the Web browser in a default view.
    Navigation of a query allows you, for example, to filter characteristics on a single value, drilldown on all values for a characteristic, regroup characteristics and key figures in the rows and columns of the results area, or hide key figures. Navigation results in different views of the InfoProvider data. In addition, a range of further functions is available which allow you to edit a query interactively (for example, sorting, cumulated output, among others). In addition, you can use the editing functions in Microsoft Excel in order to set up individual format templates, to print results areas, or to create graphics.
    ·        Queries in Workbooks
    Queries are inserted into workbooks so you can display them. When you insert a query, a link is made between the cell areas of the worksheet and the data of the InfoProvider upon which the query is based. A link therefore exists between the Business Explorer and the Business Information Warehouse Server (BW Server).
    When inserting a query into the workbook, a VBA routine is automatically generated in the workbook. You can also connect the Business Explorer with your own VBA programs (Visual Basic for Applications).
    You can create workbook templates, into which you can insert your queries. Workbook templates can contain pre-determined items for the area of the query, formatting settings, logos, VBA macros, and so on.
    ·        Precalculating workbooks
    You can precalculate and distribute workbooks with the BEx Broadcaster, which is a Web application you get to form the BEx toolbar. The system generates MS Excel workbooks with historical data. You determine the time for precalculation yourself: You can have workbooks precalculated at a predefined time or they can be precalculated whenever data in the underlying InfoProvider changes. You can have the precalculated workbooks sent by e-mail or you can export them into the Enterprise Portal, where you can make them available to employees within your company.
    Activities
    To start the BEx Analyzer, choose Start ® Programs ® SAP Front-end Business Information Warehouse ® SAP Business Explorer Analyzer.
    You can also access the BEx Analyzer via SAP Easy Access ® SAP Business Information Warehouse ® SAP Menu ® Business Explorer ® Analyzer or in the Business Explorer Browser using the Business Explorer Analyzer symbol in the menu bar.
    Hope this will solve your issu
    nagarjuna

  • Difference between Return Po and Retuning with 122 movement type

    Dear Experts,
    i need some clarification on Return Po and retuning goods with 122 movement type in the context of Excise invoice.
    in our previous company we used 122 movement we capture excise invoice with J1IS and referring the incoming excise
    and return the material to vendor.
    in present company we are directly doing return Po and capturing excise invoice with J1is,here we are not capturing against the
    incoming excise,please clarify me.
    Regards,
    Varun

    Hi,
    Refer the below thread:
    Difference between 102, 122 and 161
    In terms of stock movement, both 122 and 161 represents the return delivery to your vendor. The difference takes place in terms of how you are returning your delivery to your vendor - It is movement type 161 that SAP will automatically propose if your return PO is referenced. Otherwise, 122 movement type will be used instead.
    Regards,
    Prashant
    Edited by: Prashant Prasad on Apr 22, 2011 8:51 AM

  • What is the difference between local printing and remote printing in SAP

    Hello Nation,
    I would like to know what is the difference between local printing and remote printing in SAP and in what scenarios they are used ?
    1.What is local printing in SAP ?
    2.What is Remote Printing in SAP?
    3.what is the difference between local printing and remote printing in SAP ?
    Thank you in Advance.
    Regards,
    -Mohamed Naveen.

    Hi,
    This is SAP Business one system administration forum. Please find correct forum and repost your discussion to get quick response.
    Please close this thread here with helpful answer.
    Thanks & Regards,
    Nagarajan

  • At least 6 differences between Oracle 9i and 10g with complete understan

    Hi 2.     
    At least 6 differences between Oracle 9i and 10g                    with complete understanding of each difference .
    cheers

    Hi,
    Forum thread already opened by you
    check what is the major difference between 9i and 10g
    regards,
    kaushal

  • What's the difference between BB10 London and Liverpool?

    What is the difference between BlackBerry London and BlackBerry Liverpool? I'm having a hard time with this.
    Thanks!
    Solved!
    Go to Solution.

    The only difference is the radio bands within each...
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • What's the difference between InDesign CC and InDesign CC 2014?

    Hi,
    I am in the middle of projects and I see there is a whole new release of the Adobe Cloud apps.
    What is the What's the difference between InDesign CC and InDesign CC 2014?
    Are there different features?
    Different tutorials?
    I don't want to suddenly open my files in INDD CC 2014 unless it is fairly seamless.
    Thanks for any help and advice.
    — CR

    http://blogs.adobe.com/jkost/2014/06/installing-the-2014-release-of-creative-cloud.html
    -you may need to log OUT of your Cloud account and then log IN again to see the updates
    This messages says (at least some) CC 2014 programs use NEW plugins https://forums.adobe.com/thread/1499663
    -so do not uninstall the older CC programs if you use plugins in your programs until you are sure you have plugins that work in CC2014
    If you are sure you don't need the old CC programs
    -http://helpx.adobe.com/creative-cloud/help/install-apps.html to install or uninstall
    -read reply #3 about the ORDER of uninstalling & installing
    For program specifics, try InDesign
    The Cloud forum is not about using individual programs
    The Cloud forum is about the Cloud as a delivery & install process
    If you will start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • What's the difference between "import", "copy", and "move"?

    What's the difference between "import", "copy", and "move"?

    Locking this thread to avoid duplicate discussion.
    Refer the other thread.
    http://forums.adobe.com/thread/1389499

Maybe you are looking for

  • A lot of questions

    Background. A while ago I asked for some advice about external drives. I currently have 4 WD 4TB attached to a sonnet eSATA card and 3 WD 2 TB attached to a sonnet FW card and was having some issues with access times when saving to them. I decided to

  • Top menu bar is dead

    the top menu bar can display my growl icon, my quicksilver icon but cant display my battery life, wifi, and time... i went into the system preferences to check all the respective boxes, but they still dont appear.... help@

  • Acrobat X Form using Javascript problem

    I have a Acrobat Form which I originally created in Acrobat 7 Pro that has a button which executes many lines of javascript.  In the javascript there is a large if then else statement group that sets a variable. I have not worked on this form in many

  • Where can I find the ss_nm_jvm_startup_properties value

    Hi, I am trying to reset the weblogic user password using the document Doc ID 1949675.1 I am stuck at step 4 B. Start AdminServer:         $ java <s_nm_jvm_startup_properties> -Dweblogic.system.StoreBootIdentity=true -Dweblogic.Name=AdminServer weblo

  • Can I sync new movies on Apple TV without erasing old ones?

    I synced approximately ten movies on my Apple TV. If I delete these movies off of my computer, add new movies, and then sync with Apple TV again, I feel like I will lose all of those original ten movies that I synced. I have tried custom syncing, but