Difference between Thread and Process

Hi!
I was googling about this subject, and I found this old thread on google: http://forum.java.sun.com/thread.jspa?threadID=580508&messageID=2939031
My specific doubt is: can one thread inside in a process affect other thread inside in other process?
But, actually, the terms thread and process are not clear for me yet. I don't know what is the exact difference yet.

> If I start a JVM, and Microsoft Word, and a web
browser, that's three processes. A process is an
OS-level construct.
Threads refer to concurrent execution paths withina
given process. Just like multiple processes canrun
in parallel within the OS, so can multiple threads
run in parallel within a process.
That's exactly what I understood. So, I suppose that
a thread in a process cannot affect other thread in
other process, can it?Not at the Java language level.
I mean, the wait( ), notify(
), etc, methods do not make sense if you consider
threads of different process, right?Right. Those are just methods that you call on objects. The same rules apply to them as to other methods. Now, with RMI, it might be possible to call wait(), etc. on a remote object. I've never use RMI, but I don't think that actually works. If it does, I expect it would be in an RMI tutorial.
Indeed, very confusing. They could facilitate,
defining a clear distinction between thread and
process.Well, there is a distinction in their "interface," if you will. It's just that their implementations can overlap.
Kind of like how a List and a Set are different, but you could implement a Set by composing it with a List.

Similar Messages

  • Differences between MIC and Process control

    Hi
    Could someone please let me know what are the major differences between MIC and process control 2.5.
    I have heard that Process control 2.0 is not being used now.
    So could you please let me know what the differences for MIC and Process control 2.5.
    Regards
    Sandhya

    Hi Sandhya,
    the major differences are:
    - automated controls (SAP and non-SAP systems)
    - UI interface based on NetWeaver Business Client (NWBC)
    - flexibility on scheduling assessments and tests based on control attributes
    - configurable reports and extraction to either .pdf or .xls
    - possibility to se configure workflow to send reminders and escalations
    - integration with Access Control 5.3, RAR component
    - concept of service providers allowing controls to be referenced between different organizations (former MIC orgunit)
    - assessments based on surveys (questions to be answered)
    - effectiveness tests based on test plan (both tests and steps)
    Regards
    Andre Yuji

  • What are the practical differences betweens infopackages and process chains

    Hi,
    what are the practical differences betweens infopackages and process chains.
    Thanks,
    cheta.

    Hello BW,
    Hope the following links will give u a clear idea about process chains
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/events/sap-teched-03/using%20process%20chains%20in%20sap%20business%20information%20warehouse
    Business Intelligence Old Forum (Read Only Archive)
    http://help.sap.com/saphelp_nw2004s/helpdata/en/8f/c08b3baaa59649e10000000a11402f/frameset.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/8da0cd90-0201-0010-2d9a-abab69f10045
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/19683495-0501-0010-4381-b31db6ece1e9
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/36693695-0501-0010-698a-a015c6aac9e1
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9936e790-0201-0010-f185-89d0377639db
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3507aa90-0201-0010-6891-d7df8c4722f7
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/263de690-0201-0010-bc9f-b65b3e7ba11c
    /people/siegfried.szameitat/blog/2006/02/26/restarting-processchains
    regards,
    Muralidhar Prasad.C

  • Difference between Overheads and Process Costs

    Hi Experts,
    May somebody clarify the difference between Overheads and Process Costs in PS application. This problem puzzled me for a long period. Thanks in advance!

    Hi Allen
    Please go through this link
    http://help.sap.com/saphelp_pserv464/helpdata/EN/e9/3cb2a4b05411d29f5e080009b0db33/frameset.htm
    I hope it will be very useful to you in understanding.
    Regards,

  • What is the difference between thread and task

    hi ,this is guruvulu bojja
    what is the diff between thread and task .
    can u give me the example for distinguish a thread and a task .
    How can i know thread is better than a task .
    please tell me what is the task in o/s level and task.
    <b>how the o/s distinguish a therad and task.</b>

    Hi Guruvulu,
    <b>Threads</b> enhance performance and functionality by allowing a program to efficiently perform multiple <b>tasks</b> simultaneously.
    In the case of <i><b>common memory</b></i> <b>threads</b> naturally have shared data regions while it has to be specially created and initialized for <b>tasks</b>.
    Simply put, a <b>thread</b> is a program's path of execution. It allows execution of two or more sections of a program at the same time.
    Regards,
    Pooja.

  • Problem from Difference betw Thread and Process.

    Hi,
    my app create new Process and execute subtask. So, Main Process wait for the sub process to finish. Like follow.
    Process child= Runtime.getRuntime().exec(cmds);//run java ClassName cmdArrays..
    try {
    child.waitFor();
    } catch (InterruptedException e) {
    //when error ocurrs it return error message
    return "Running Process error :\n "+
    e.getMessage();
    In this case if sub process run swing application, parent process seem to freeze.
    It will wait forever.
    I try to create new Thread to create new Process. But, the problem is child process is created by parent process. But, Parent is Thread not process.
    So, waitFor still make parent process freeze. Is this right?
    How can I solve this problem?

    waitFor() becasue I need input/errorStream You do not need to call waitFor() first in order to get the input/error streams of the child process!
                            Runtime         rt=Runtime.getRuntime();
                            Process         proc=rt.exec(command);
                            InputStream is=proc.getInputStream();
                            LineNumberReader lnr=new LineNumberReader(new InputStreamReader (is));
                            sRet=lnr.readLine();
                            String line;
                            while((line=lnr.readLine()) != null) {
                                    if (DEBUG1) System.out.println(line);
                                    InputStream is2=proc.getErrorStream();
                                    LineNumberReader lnr2=new LineNumberReader(new InputStreamReader (is2));
                                    while((line=lnr2.readLine()) != null) {
                                            System.err.println(line);
                            iRet=proc.waitFor();

  • Difference between Computation and Process

    Any Computation can also be implemented as a Process. Their "firing points" are also the same.
    So, why do Computations exist at all?
    Thanks

    Vikas - I don't know but computations always fire before processes at any given firing point allowing processes to reference session state that may have been set by a computation at the same or earlier firing point. It's true though that a process can set session state as well, so a computation is just a special-purpose process with declarative attributes that allow for application or page items to be named as the object of the computation. But then a validation is merely a special-purpose process that does what it does. And a branch is a special-purpose process that does a URL redirect or something similar, and before there were report regions there were just processes...
    Scott

  • Difference between Scheduled and released with respect to process chains

    HI All,
    I am Creating a cube in whcih I want to upload the current status of the process chain.
    And the requirement is not to take those process chains whcih are scheduled and not released( only take those process chains whcih have status released)
    for the same I dont know what is the difference between Scheduled and Released in respect of process Chains and also from whcih Database table I can get this information.
    Please help.
    Regards,
    Ujjwal

    Hi,
    Job Status Scheduled means a job has been created and is ready to run but has not yet been triggered.
    A release status means the created job has been triggered and is waiting for the opportunity to run. A job can be in released status when it is a periodic Job ( Where once the job is completed it goes to release status), when it is slated for future execution, or when there is a delay due to database overload.
    Regards,
    Pramod

  • Difference Between BAPI And RFC in ABAP

    Hi,
    i want to know difference between BAPI and RFC in SAP,
    can we call SAP GUI screen from NON SAP System Using BAPI.
    Reg,
    Hariharan

    Hi Ravishankar,
    The difference is not importat while you understand the concept.
    I think, RFC is the protocol for calling functions from external systems in R/3.
    I understand like BAPI a series of complet functions that SAP offers you for use and model a business use.
    But if I need program a function that can be called for external system i would call it RFC_NAME, because is a unique function that makes a single task.
    In other words, the difference i think is about work idea more than another thing.
    RFC
    A remote function call is a call to a function module running in a system different from the caller's. The remote function can also be called from within the same system (as a remote call).
    RFC consists of two interfaces : A calling interface for ABAP Programs and a calling interface for Non-SAP programs.
    The RFC Interface takes care of :-
    - Converting all parameter data to the representation needed in the remote system
    Calling the communication routines needed to talk to the remote system.
    Handling communications errors, and notifying the caller, if desired ( using EXCEPTIONS paramater of the CALL FUNCTION).
    BAPI
    BAPIs are standardized programming interfaces (methods) enabling external applications to access business processes and data in the R/3 System.
    BAPIs provide stable and standardized methods to achieve seamless integration between the R/3 System and external applications, legacy systems and add-ons.
    BAPIs are defined in the BOR(Business object repository) as methods of SAP business object types that carry out specific business functions.
    BAPIs are implemented as RFC-enabled function modules and are created in the Function Builder of the ABAP Workbench.
    The most critical difference btwn BAPI and FM is that BAPI can be wrapped in Business objects whereas RFC cant.
    BAPI are RFC enabled function modules. the difference between RFc and BAPI are business objects. You create business objects and those are then registered in your BOR (Business Object Repository) which can be accessed outside the SAP system by using some other applications (Non-SAP) such as VB or JAVA. in this case u only specify the business object and its method from external system in BAPI there is no direct system call. while RFC are direct system call Some BAPIs provide basic functions and can be used for most SAP business object types. These BAPIs should be implemented the same for all business object types. Standardized BAPIs are easier to use and prevent users having to deal with a number of different BAPIs. Whenever possible, a standardized BAPI must be used in preference to an individual BAPI.
    The following standardized BAPIs are provided:
    Reading instances of SAP business objects
    GetList ( ) With the BAPI GetList you can select a range of object key values, for example, company codes and material numbers.
    The BAPI GetList() is a class method.
    GetDetail() With the BAPI GetDetail() the details of an instance of a business object type are retrieved and returned to the calling program. The instance is identified via its key. The BAPI GetDetail() is an instance method. BAPIs that can create, change or delete instances of a business object type
    The following BAPIs of the same object type have to be programmed so that they can be called several times within one transaction. For example, if, after sales order 1 has been created, a second sales order 2 is created in the same transaction, the second BAPI call must not affect the consistency of the sales order 2. After completing the transaction with a COMMIT WORK, both the orders are saved consistently in the database.
    Create( ) and CreateFromData! ( )
    The BAPIs Create() and CreateFromData() create an instance of an SAP business object type, for example, a purchase order. These BAPIs are class methods.
    Change( )
    The BAPI Change() changes an existing instance of an SAP business object type, for example, a purchase order. The BAPI Change () is an instance method.
    Delete( ) and Undelete( ) The BAPI Delete() deletes an instance of an SAP business object type from the database or sets a deletion flag.
    The BAPI Undelete() removes a deletion flag. These BAPIs are instance methods.
    Cancel ( ) Unlike the BAPI Delete(), the BAPI Cancel() cancels an instance of a business object type. The instance to be cancelled remains in the database and an additional instance is created and this is the one that is actually canceled. The Cancel() BAPI is an instance method.
    Add<subobject> ( ) and Remove<subobject> ( ) The BAPI Add<subobject> adds a subobject to an existing object inst! ance and the BAPI and Remove<subobject> removes a subobject from an object instance. These BAPIs are instance methods.
    Check these Links out
    http://searchsap.techtarget.com/ateQuestionNResponse/0,289625,sid21_cid558752_tax293481,00.html
    http://www.sap-img.com/abap/interview-question-on-bapi-rfc-abap-objects-tables.htm
    http://www.sap-img.com/fu033.htm
    http://www.sap-img.com/abap/ale-bapi.htm
    Refer following SDN threads:
    Diff. Between BAPI and RFC
    Re: BAPI and RFC
    Hope this resolves your query.
    Reward all the helpful answers.
    Regards

  • Difference Between BAPI and RFM

    Dear Friends,
    I have seen a few thread explaining the difference between BAPI and RFM(Remote-enabled function Modules) from functional point of view. I know that there are cases when both are available in BOR. Both can be implement using Object Oriented Technology.
    Can any tell me how they differ from techincal point of view ? OR Are they same techinically ?
    Thanks in advance,
    Rajesh

    hi,
    Remote Function Call:
    RFC is an SAP interface protocol.
    Based on CPI-C, it considerably simplifies the programming of communication processes between systems.
    RFCs enable you to call and execute predefined functions in a remote system - or even in the same system.
    RFCs manage the communication process, parameter transfer and error handling.
    http://help.sap.com/saphelp_47x200/helpdata/en/22/042860488911d189490000e829fbbd/frameset.htm.
    BAPI
    BAPI stands for Business API(Application Program Interface).
    A BAPI is remotely enabled function module
    ie it can be invoked from remote programs like standalone JAVA programs, web interface etc..
    You can make your function module remotely enabled in attributes of Function module but
    A BAPI are standard SAP function modules provided by SAP for remote access.
    Also they are part of Businees Objest Repository(BOR).
    BAPI are RFC enabled function modules. the difference between RFc and BAPI are business objects.
    You create business objects and those are then registered in your BOR (Business Object Repository)
    which can be accessed outside the SAP system by using some other applications (Non-SAP) such as VB or JAVA.
    In this case u only specify the business object and its method from external system
    in BAPI there is no direct system call. while RFC are direct system call.
    Some BAPIs provide basic functions and can be used for most SAP business object types.
    These BAPIs should be implemented the same for all business object types.
    Standardized BAPIs are easier to use and prevent users having to deal with a number of different BAPIs.
    Whenever possible, a standardized BAPI must be used in preference to an individual BAPI.
    Regards
    Reshma

  • Difference between party and service without party

    Hi all,
    Please tell me the difference between Service and Service without party  and also let me know what is Business system, Business service and Integration process.
    regards,
    sudha

    Hi Sudha
    <u><b>Party</b></u>
    Party is used to represent a Business Partner (doesnt belong to the current landscape) which is defined in B2B Scenarios.So All the systems/services accociated with the Party are referred only as Services.
    <u><b>Service without Party</b></u>
    It is used to represent any service within the landscape and is used in A2A communication.
    Check the Threads for reference...
    Party & Service without Party
    Diff b/w Party & Service w/o Party in Integration Directory?
    Differenz between services to use
    Party and Service without party
    Use-Case for Business Services (Service Without Party) in SAP XI
    <u><b>Business System</b></u>
    Business system will use only when you defind in SLD to identify your sender or receiver.
    <u><b>Business Service</b></u>
    Business service will use to indetify your sender or reciver if we can't defind in SLD then we need to use the business serivce
    Cheers..
    Vasu
    <u><i><b>** Reward Points if found useful **</b></i></u>

  • Difference between wait() and sleep()

    hi
    can any one tell me what is the difference between wait() and sleep().
    thanks in advance.

    Mahaboob,
    This question has been asked before; however, I will give you a real life example.
    Imagine you are in a super market and you go to the till to pay by your card, then behind you there are 10 people waiting in queue. You card does not work since you have not supplied the right pin code; there are two option
    1- Sleep
    2- Wait
    1- If you sleep you will lock the till for your self and try to figure out the pin number while the queue behind you increase on the resource (till)
    so you are engaging the till and wasting its time and wasting the till machine resource (CPU)
    2- you are polite, you move aside and wait so so that others can use the resource (till) until somebody in the queue finishes ( a good person) and give you a shout to tell you come in to the till to process your payment; you wake up and enter the pin number and go out from the super market.
    Now when you sleep, the current thread locks the resource so no body can use it and wast the CPU time
    while wait make the current thread release the lock on the object and does not ( this thread) actually wast the CPU time
    There are much more explanantion, try to search this forum.
    Regards,
    Alan Mehio
    London,UK

  • Whats the Difference Between BOM and Components??

    Hi all,
    I tried to create a SubContracting PO,i found BOM and Components in Item <b>Tab</b>
    but if i click components and BOM same data details exists,then whats the difference between component and BOM??
    and also Pls give me method of Creating PO with BOM
    Thanks a lot in advance

    Dear Veeranna Chavadi,
    This is some infirmation about BOM in PO subcontract
    1) The purchasing department processing time defined for the plant
    2) The planned delivery time from the material master record or purchasing info record
    3) The delivery date
    4) The goods receipt processing time from the material master record
    For Ex:
    Processing time Planned del. GR processing
    Purchasing time time
    Release PO Delivery Date
    date date date required
    Date required: 10.09.2007
    GR processing time: 2 days (working days)
    Planned delivery time: 10 days (calendar days)
    Purchasing dept processing time: 2 days (working days)
    Requirement date less GR processing time, planned delivery time, and purchasing department processing time.
    Hope you understand, this is as per the SAP help.
    what happen to u r query, if BOM is exploding please close this thread as answered
    Hope this helps you
    Prem.

  • What's the difference between green_threads and native_threads?

    Hi,Java gurus
    Can you tell me the difference between green_threads and native_threads of Sun's JVM implementation for Linux?
    Thanks in advance!
    Regards,
    Justine

    Green threads are 'user mode' threads and are not implemented directly by the OS's threads but simulated. Native threads are implemented (or at least backed by) native OS threads.
    Green threads can be more efficient, but cannot take advantage of multiple processors and some operations may effectively block all green threads in a process when the native thread that is shared between them all gets blocked in the kernel.
    Later versions of Java have tended to drop support for green threads in favor for the greater capabilities of native threads. The tradeoff is mostly acceptable.
    Chuck

  • Difference between streaming and chunking

    Hi,
    I am working in a secure proxy project. Already we implemented chunking funcionality. Chunking meas when client accessing a big file- no need to wait until the total page downloaded(we generally observe status bar to say request is in processing). Depending on the specified chunked size, output will display onto client browser in chunks...
    Now the requirement is to implement streming....
    But we r not sure..what is the exact difference between Streaming and chunking.....Will any one give some inputs or ideas....
    Thanks,

    Double posted and answered
    http://forum.java.sun.com/thread.jspa?threadID=736983

Maybe you are looking for