Why can't you use PipedXputStream in other than threaded application

I have need for usage of these in a non-threaded application, however the Javadoc indicate this should not be done.
"Attempting to use both objects from a single thread is not recommended, as it may deadlock the thread."
As the Java community is composed of some brilliant people, I am curious as to why any limitation of this sort has not been fixed/addressed?
What is the root cause of these deadlock situations?
Thanks in advance.
Steve

899559 wrote:
I have need for usage of these in a non-threaded application, however the Javadoc indicate this should not be done.Because using streams in a single thread makes no sense, since you can just use method calls. And that avoids the situation were you could be trying to write more than the stream buffer can hold or trying to read more than you wrote to the stream.
data = getData();
outPipe.write(data);
data = inPipe.read();
doSomethingWith(data);
// is just a roundabout way of coding
doSomethingWith(getData());

Similar Messages

  • Why can't you use the ellipsis 7 as a phone since verizon assigns it a phone number

    Why can't you use the ellipsis 7 as a phone since Verizon does assign it a phone number.

    The phone number is for the line of service only. There isn't a dialer application nor is there a CDMA radio in it for voice calls.

  • Why can't you use your iCloud email address for your Apple ID?

    Why can't an iCloud.com email address be used to create an Apple ID?  Is iCloud email not to be used as a primary email?

    You can if you create an new Apple ID at the time you create the iCloud account, and choose to create a new @icloud.com email address as your primary email address when creating the ID.  See Imp68's post here for an example of how you would do this on a Mac: https://discussions.apple.com/message/22283348#22283348.
    You could not use your existing @icloud.com email address as it is already an alias for your existing iCloud ID; you would have to create a new one.

  • Why can't you use a pre-paid credit card on your itunes account?

    i tried using  apre paid credit card for my itnunes account to purchase songs and it won't let me

    jkhitunes wrote:
    Wonder why an Apple person told me this would work??
    Apple should read this stuff once in a while.
    Some prepaid cards appear to act as credit cards to the merchant. If yours is one of them it should work, but debit cards are not accepted for the iTunes Store.
    Can you use a pre-paid credit card from Wal-Mart?
    Do you mean an iTunes Card, the kind sold at Wal-Mart? Sure, that will work.
    "Pre-paid" and "credit" are mutually exclusive.
    I believe this way of thinking about it ought to be valid: if you need a PIN code, the card won't work.
    I don't use debit cards so I can't be certain if this will apply consistently, but let me know if that makes sense.

  • When is Apple going to fix the problems with IOS8 Safari either won't work or is very slow.why can't you contact Apple themselves rather than this method?

    ssince updating my IPad to IOS8 Safari does not work properly ie Marriott website it tells me no server is available yet Google works and other web search have the same problem when is Apple going to get fixes out soon I hope.Also why can't we contact Apple direct on this matter ?

    Try some basic troubleshooting steps. Clear Safari, force close the app and reset the iPad.
    Go to Settings>Safari>Clear History, Cookies and Data.
    In order to close apps in iOS 8, you have to drag the app up from the multitasking display. Double tap the home button and you will see apps lined up going left to right across the screen. Swipe to get to the app that you want to close and then swipe "up" on the app preview thumbnail to close it.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.
    There re are ways to contact Apple directly. Look here for help.
    Contact Apple for support and service

  • Smart tunnel used for access other than native application?

    Dear all,
    i have a question about smart tunnel. my situation is, i need to  access to the server on certain IP address that using a port (example : port 5007) that is native for the application. that application is customized application just for my company.
    Question is :
    1. can i use smart tunnel to access the application for that particular port (ex : port 5007, 8476) ?
    2. i have so many grup servers (other than group server A) with so many costumized application with native port . is there any other way for me to access to that IP without using smart tunnel? because this project requirement is
    Clientless application access using application/Agent in user's PC, such as RDP, SSH & Native Application and ohers.
    Group Server A
    IP                                     Port
    10.194.24.99
    5007, 80, 9593, 9594, 9595
    10.194.22.99
    82
    192.9.1.99
    23, 449, 8470, 8476, 9470, 9476, 992
    My ASA is 9.1.3 and my ASDM is 7.1.3
    Please kindly to help, any reponse i appreciated
    source : http://www.cisco.com/c/dam/en/us/solutions/collateral/enterprise/design-zone-security/tunnel.pdf

    See http://www.mozilla.org/projects/netlib/PortBanning.html
    * http://kb.mozillazine.org/network.security.ports.banned.override

  • Why can't you use airdrop between all apple devices?!just got the iPad air, and was hoping to have the ability to airdrop images from the mac to the iPad....and you can't do that?! c'mon apple!!Whats going on?!

    Is there any way to use Airdrop between Imac and Ipad air?
    I cant quite believe thatthe two are not interlinked!!? or am i missing something? i can pick up iphone on the ipad, ipad on the iphone but pick neither up on the imac or the imac on the ipad or iphone. Can anyone shed any light on this?

    AirDop on the Mac is a different tech than AirDrop on the iPhone and iPad.  At this time, there is no interaction between thew different AirDrops.
    It is a little confusing that they are called the same, but are in fact different.
    Why Apple did this, I can't say.  Maybe in the future it will be possible.

  • G4 wireless/Can you use another product other than Airport?

    I have a G4 tower and I am using a Netgear wireless router for my Dell computer, is there another usb or wireless option for the G4 I can use?

    You don't have to have an Aiport card to connect to the Netgear. Most USB WiFi dongles work with OS X. They're about the size of a thumbdrive and can cost as little as $40-$50 USD.

  • Why can't i use mail in other user accounts? (the mail icon is a ? mark)

    My user account is the main administrator account, .... but i have other family members that are at that age that they want to use their own account with their own mail account. However, .... under those other accounts, .... the mail icon in the dock is a question mark.
    I believe i checked the appropriate check boxes under administrator to allow other apps to be used by other accounts but i am not 100% of this... please help...thanks

    Did you move the location of the Mail app? 
    Within the other accounts navigate to Macintosh HD > Applications > Mail. Double click. Then select the dock, choose the hawk's wings icon and right click and choose "Keep in Dock".
    mrtotes

  • Why Can't You Use My New Credit Card?

    You keep warning me that my Creative Cloud membership will expire by the end of December.
    I did update my account information with a new Credit Card yesterday...but today I received another
    warning.
    How can I resolve?
    Robert Casazza
    [email protected]

    HI Robert,
    I checked your account as I did see that the payment was received today for the subscription. Please try signing out and sign back in to activate the subscription
    http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html
    Thanks
    Scott

  • WSUS Repair: Can I not use a drive other than C:?

    I used the wizard to move the WSUS folders from the C: drive to the SBS2008's D: drive in order to recover C: drive disk space as so many others have had to do. Now ofcourse, the system says it no longer is installed as designed and updates to domain
    computers no longer works.
    There is a good TechNet article on how to "Repair Windows Server Update Services" but it assumes the WSUS directory must be created on C: which ofcourse is not what I want.
    I appreciate there are SQL issues involved here, but if I simply specify D: as the partition to create the WSUS directory, substitute D:\WSUS in the wsussetup.exe parameters (from the section in that article headed 'To manually recover Windows Server
    Update Services), will this work?
    Thanks in advance
    Jerome

    Hi Jerome,
    à
    if I simply specify D: as the partition to create the WSUS directory, substitute D:\WSUS in the wsussetup.exe parameters (from the section in that article headed 'To manually
    recover Windows Server Update Services), will this work?
    I suggest that you should follow the step “create a directory called WSUS on the C: partition” to
    repair WSUS as described in this TechNet article (Repair Windows Server Update Services). It will help us to avoid unexpected issues.
    à
    I used the wizard to move the WSUS folders from the C: drive to the SBS2008's D: drive in order to recover C: drive disk space as so many others have had to do.
    After repairing WSUS, please refer to following article and check if help you to
    move WSUS Content and Database Files to a Different Volume.
    How
    to Move WSUS Content and Database Files to a Different Volume
    Meanwhile, please refer to following article and check if help you to recover disk space on C drive.
    Recovering
    Disk Space on the C: Drive in Small Business Server 2008
    If any update, please feel free to let me know.
    Hope this helps.
    Best regards,
    Justin Gu

  • It just don't make sense you say ICloud backs up my IPad so why can't I use the extra Gb then then who did I pay to get what I thought was GB to use on my IPad?

    It don't make sense then why sell the extra GB for the IPad I paid $100 thinking I use it for the extra storage who sold it to me? I thought it was apple I'll have to re check that!!! I'm disappointed for sure.if ICloud is for backup the why can't you use it for storage too!!!

    iCloud is for backup. It cannot magically change your device's hardware or storage capacity.
    "If you upgrade or renew your storage but no longer need it, you can cancel. If you cancel your storage plan within 15 days of an upgrade or within 45 days after a yearly payment, you can contact Apple for a full refund. After this period, you can downgrade your storage for the following year."

  • HT204088 Why can't you print a cd jewel case listing of songs using iTunes. Is there some other way of doing this without using iTunes?

    Why can't you print a cd jewel case listing of songs using iTunes. Is there some other way to do this without using iTunes?

    Hi spider1950,
    As long as you have the most recent update of iTunes (11.0.4), you should be able to print a jewel case insert directly from iTunes. You may find the following page useful:
    Apple Support: Print CD Inserts
    https://www.apple.com/findouthow/music/itunes.html#makecd-printinserts
    Regards,
    - Brenden

  • Why can't I use my internet, when other Apple products Can?

    why can't I use my internet, when other Apple products Can?

    Hi helen xia,
    Which OS are you using? Please let us know the exact error message.
    Regards,
    Romit Sinha

  • HT204266 Why can't I use paypal?  And if I can't use paypal why do you list it?

    Why can't I use paypal?  And if I can't use paypal why do you list it?

    I suspect it is a case of different rules in different regions. Here in the UK I have a choice of Visa, MasterCard, Amex, ClickandBuy (who they?), Maestro and None... Where are you seeing PayPal advertised as an option?
    tt2

Maybe you are looking for

  • Cancelling Excise Invoice

    Hello SAP gurus, We have developed a programme for creation of Excise Invoice, once the document created we post it manually through J1IS. The problem once Excise document generated (Posting not done) and if i want to cancle the invoice through J1IS,

  • Hopefully simple question. Event ID 2 Task Category (2) Lenovo Message Center Plus Admin

    Hey group, Wanted to ask you guys what I was missing. In my event log as the title implies I have a Event ID 2 Task Category (2) error in Lenovo Message Center Plus Admin coming as a result of a 404 error. Issue is I don't know what page it is lookin

  • Bridge doesn't start

    after i updated photoshop, indesign and illustrator cc bridge doesn't start (crash until starting)

  • Creative Zen MicroPhoto, i think i have a unique problem

    My 8gig player froze the other day, i couldnt turn it off so i restarted it. When i turned it back on most of the songs were gone, the music library looked similar to the way it had about a week or two after i got it. Also everytime i turn it on now

  • "A temporary Network Error" response from server

    Hello guys, I'm using standard AT^SJNET and HttpConnection for sending data to server as POST data in http request. Application works fine with SIM cards from Vodafone CZ, DE, FR, but I have problem with Vodafone IT. Data are transfered to server but