How does the .accept() method work?

Hi,
I have checked the source code of the ServerSocket implementation that comes with the jdk.
I tought I was going to find some type of loop. However I found nothing like that! so how does the accept method work.
I mean when we call the .accept() method, the thread in which the socketServer is initialized gets stoped untill a new client connection is recieved! how is this actually managed?
Regards,
Sim085

At a guess, the accept call that Java makes, relies on the OS system call through JNI. accept would then block until a new connection is present if you are using blocking.

Similar Messages

  • HT4914 How does the payment method work for iTunes Match?

    How does the payment method work with iTunes Match. For example, if you have a gift card, does it take it out of that. Or is there tax? What if you cancel your subscription in the middle of the year, does it take the money for that year or not? If someone could answer those questions it would be greatly apreciated. And if anyone has their own questions, feel free to ask. Thank you.

    Hi HLFrank,
    Welcome to Adobe Forum,
    You can opt for monthly payment in a yearly contract or pay at one go for an year.
    Please check the option at http://www.adobe.com/in/products/creativecloud/buying-guide.html
    Regards,
    Rajshree

  • How does the return method work?

    how does the return method work?

    What do you mean by "return method"? Methods return a value (or void, but that's still a "value" of sorts).
    Returning a Value from a Method
    http://java.sun.com/docs/books/tutorial/java/javaOO/methoddecl.html

  • How does the substring method work

    hey folks, does anyone know how the substring method works

    Then you want to use String.split using regular expressions:
    split
    public String[] split(String regex)
        Splits this string around matches of the given regular expression.
        This method works as if by invoking the two-argument split method with the
    given expression and a limit argument of zero. Trailing empty strings are
    therefore not included in the resulting array.
        The string "boo:and:foo", for example, yields the following results with these
    expressions:
            Regex      Result
            :      { "boo", "and", "foo" }
            o      { "b", "", ":and:f" }
        Parameters:
            regex - the delimiting regular expression
        Returns:
            the array of strings computed by splitting this string around matches of
    the given regular expression
        Throws:
            PatternSyntaxException - if the regular expression's syntax is invalid
        Since:
            1.4
        See Also:
            Patternhttp://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html#split(java.lang.String)
    http://java.sun.com/j2se/1.5.0/docs/api/java/util/regex/Pattern.html#sum
    Have fun,
    JJ 

  • How does the Delta functionality works while updating Infocube from PA

    Hi Gurus
    How does the Delta functionality works when you send forecast to the Info cube from the Planning Area.
    As I have weekly based planning, every week we have to update the forecast into the Cube. If I update  every week into the Cube , then the values are going to append  in the Info cube.
    Shall I create ODS in between the Planning area  and the Info cube .
    (or)
    Any other method ?
    Please Suggest.

    Hi Preetham,
    Data Extraction from planning area to infocube usually its supports for full update only, when u r going to load the data from planning area to cube ,it deletes the previous data and u vil get the fresh data, this is the best method performance wise,
    if u want to use the delta functionality u can go for planning area to Dso, Dso to cube, it vil supports the delta functionality, but it vil degrades the system performance,
    regards
    ravi

  • How does the event structure work & ...

    How does the event structure work & and how to modify the case example if you want to change the name of the case? I haven't a look at the manual but nothing about event structure is mentioned.

    I know how it works.. =P

  • How does the notify() call work in Java?

    Hi!
    Can someone help me:
    How does the notify() call work in Java?
    H�var

    Java's Thread Tutorial
    JavaWorld: Introduction to Java threads
    IBM: Introduction to Java threads
    Google: java+threads+tutorial

  • How does the copy button work in safari for ipad (copy button under facebbok share button)?

    How does the copy button work in safari for ipad (copy button under facebbok share button)?

    On a website ...  
    Tap the Action icon bottom of that window. (white square with a right facing arrow) then tap Facebook.
    You should see the following depending on the what content the website can share.
    Copy / Mail / Message / Twitter / Print  / Bookmark

  • How does the Passbook application work? How am I able to import my plane ticket, concert ticket etc into Passbook?

    How does the Passbook application work? How am I able to import my plane ticket, concert ticket etc into Passbook?

    Try the following to fix the iTunes Can't Connect issue that you are having:
    Open Settings.
    Open General.
    Open Date & Time.
    Switch the Set Automatically setting to Off.
    Open Set Date & Time.
    Set the date to a year ahead.
    Go back to the Home screen and open Passbook.
    Tap the App Store button. The App Store should load.
    Go back to Date & Time and turn on Set Automatically.
    Thanks to: https://discussions.apple.com/message/19622208#19622208

  • How does the newest Iphone work with Ford Sync?

    How does the new Iphone work with Ford Sync? I was thinking of purchasing the 4s but may go elsewhere if there is a better phone for the equipment in my vehicle.

    That would be a NO.. I should have done my homework before I switched to IPhone because the Bluetooth just does not want to sync with my Ford Truck. Its such an inconvience. But I see from other posts that Ford isn't the only car experiencing problems. So Hopefully Apple fixes this problem QUICKLY!

  • How does the follwoing query work?

    Want to know how does the follwoign query work??
    For every row in flsp
    the subquery is going to get executed or is it just one time execution of the subquery??
    UPDATE flsp
    SET (DURATION, sdr, inr) =
    (SELECT SUM (tot_charges), SUM (tot_charges_sdr),
    SUM (tot_duration)
    FROM t
    WHERE t.sender_pmn = flsp.sender_pmn
    AND t.recipient_pmn = flsp.recipient_pmn
    AND t.imsi_min = flsp.imsi
    AND TRUNC (t.call_date) = TRUNC (flsp.call_date)
    AND t.call_type = flsp.call_type
    AND t.service_code = flsp.service_code
    GROUP BY sender_pmn,
    recipient_pmn,
    imsi_min,
    TRUNC (t.call_date),
    call_type);
    Edited by: user8731258 on Sep 27, 2010 2:54 AM

    user8731258 wrote:
    the global session table is going to hold data for one sessions where as the table flsp is going to hold data for the entire day.During a session there could be say 10 thousand records.Sounds like a bad idea.
    user8731258 wrote:
    ANd there are goign to aroung 100 such sessions.Continues to sound bad.
    user8731258 wrote:
    I have to update the flsp continually.Just got worse.
    user8731258 wrote:
    How do i make this fetch fast??This still makes no sense to me.
    Why are you moving all this data around and utilizing temporary tables instead of directly querying the underlying data on an 'as needed' basis?
    I think you have undertaken entirely the wrong technical approach to whatever business problem you are attempting to solve (though it's hard to say for sure as we still know little of what you've got going on).
    So back to step number one like i asked before.
    Can you explain (from the very beginning) WHY you are attempting this type of set up?

  • How does the trade in work?

    How does the trade in work. If you don't get your gift card until 4-6 weeks after you mail it. How do you apply it to the cost of the new phone?  If I go to a store that has it in stock will they give you the credit in the store?

        Hi Karen922!
    I can happily alleviate the confusion! If you visit a store and the iPhone 6 or 6 Plus is available you'll receive the trade in value during the transaction. If the device is purchased online,via the phone or if the store is out of stock, you'll receive the gift card in mail.
    Thanks,
    AyaniB_VZW
    Follow us on Twitter @VZWSupport

  • How does the repair process work

    how does the repair process work, currently broke my iPhone, water damage, and still have a warranty until july 30.

    http://www.apple.com/support/iphone/repair/other/

  • How does the time machine work

    how does the time machine work....I need to find an older version of a document...

    Hi mogburn,
    Time Machine is part of the System software, not a feature of the word processing and page layout application, Pages, the topic in this community.
    That said, Time Machine is pretty easy to get into.
    In the Finder, open the folder containing the current version of the file.
    Select the file, then click on the Time Machine icon in the menu bar and choose Enter Time machine.
    The folder window will move to the center of the screen, and two arrows will appear near the lower right corner of the window.
    Click the one pointing back to go back in time, and the one pointing toward the front (of the computer) to return to the present. The display will stop at each saved version of the file along the way.
    Need more details? Try asking in the Mac OS X v10.6 Snow Leopard community.
    Regards,
    Barry

  • How does the multicolumn listbox work?

    how does the multicolumn listbox work?

    Code attached
    [email protected]
    Ian F
    Since LabVIEW 5.1... 7.1.1... 2009, 2010
    依恩与LabVIEW
    LVVILIB.blogspot.com
    Attachments:
    Get_DlbClk_Row_ifk2003.vi ‏31 KB

Maybe you are looking for

  • How can I debug a sequence that has a subsequence is running in a separate thread?

    Hi, How can I debug a sequence that has a subsequence is running in a separate thread? I have to have a continues check for a  digital in signal to be able to terminate the sequence if a physical button is pushed. This is running in a separate thread

  • Error: java.util.NoSuchElementException while migrating from Mysql

    Hello All, I am trying to migrate a Mysql DB to oracle 10g, the following are the steps that I'm following: 1. - Create an Oracle user named MIGRATIONS and grant it at least RESOURCE, CREATE SESSION, and CREATE VIEW privileges 2. - Create a database

  • Issue to export data from sql to excel

    I have MS SQL 2008 Developer version and visual studio 2008. I'm using SSIS Import and Export Wizard on the VS2008 to create a simple package to export data from a table using a sql query to excel file (.xlsx), but I got the following error messages:

  • Updating model for pivot table in af:iterator

    Using Master Detail relationship, i am trying to create multiple forms at runtime. I want to show all the forms at once. Each form has some header fields and a pivot table. Header field is coming from master table and pivot table should be made from

  • Creating webservice using webdynpro java calling bapi from r/3

    hi all, as i am new to this area can anyone provide me a guide to create a simple webservice using webdynpro java to call bapi's from r/3? i want to consume the created webservice on a .net client. Thanks in advance, Raghunandan