Do I need separate thread for readObject() and writeObject()?

Somehow, my Client/Server code behaves badly. A click on
the GUI did not always send a message to the Server as
intented (using writeObject(String)). Most of the times the
message was sent. But not always.The Client (GUI) also uses
readObject() to receive messages from the Server. Is this
problem associated with the fact that my readObject() and
writeObject() from the GUI are on the same thread? Need
some help.
Thank you.

"and I don't do GUIs"
First, let me say, as a Newbie, how good it feels to
even be able to follow this.
But I honestly don't understand the above quoted
comment from jverd.
How does somebody do Java and not do GUI stuff?
It almost sounds like a plumber saying "I don't do
sinks."
Even from my novice perspective, Java seems slow and
sucks copious amounts of memory.
Is there any practical use for Java if you're not
doing GUIs?In my experience, it's often the GUIs that make it slow. Apparently things are better if you use Swing carefully, or use SWT or maybe AWT.
As far as I can tell, the vast majority of Java code that's out there is backend stuff. Not that I've done a formal survey. I can tell you from personal experience however, that there is a LOT of stuff that Java is good for besides GUIs (business logic behind websites being one of its major areas of use), and if you write reasonably good code, it will be very fast.
Your analogy might be better couched as "an auto mechanic saying 'I don't do body work.'"

Similar Messages

  • I have Adobe Photoshop Elements 10 and Adobe Premier 10 loaded on a Dell PC. Do I need to uninstall from the Dell before I install on a recently purchased Apple Mac Pro? There are separate disks for Mac and PC in the package.

    I have Adobe Photoshop Elements 10 and Adobe Premier 10 loaded on a Dell PC. Do I need to uninstall from the Dell before I install on a recently purchased Apple Mac Pro? There are separate disks for Mac and PC in the package.

    Generally, it's ok to install on two machines as long as they are both yours and you only use one version at a time.
    BTW, this is the forum for Adobe Contribute.

  • Why do we need separate t.codes KB11N and KB41N for reposting costs & rev?

    Hi,
    Why do we need separate t.codes KB11N and KB41N for reposting costs and revenues? I noticed that i can still use one t.code KB11N to post both costs and revenues, hence why do we need a separate t.code KB41N for revenues?

    Hi,
    The BAPI for costs allows more options than the one for revenues. For example, via BAPI_ACC_PRIMARY_COSTS_POST  you can select sender Network, what you cannot do via BAPI_ACC_REVENUES_POST. The same is for 'cost object' as a receiver; you can do it only via BAPI for costs. In other aspects, the BAPI for costs could be used to repost revenues as well.
    Regards,
    Eli

  • I have an iPad, iPod touch, iPod classic. I tried using one account for allow only not being able to sign on with my touch. Do I  need separate accounts for each?

    Do I need separate accounts for each?
    I have an iPad, iPod classic and an iPod touch.
    Can not sign on to App Store with the touch.
    So how can I set up a new account?

    Error message -can not sign into App Store
    Same message for iTunes
    I use my iPad most of the time but would like to ad app to the touch

  • Now a separate thread for the HTC Rezound! - lower left under "Spaces"

    FINALLY!! THANK YOU!!!
    For some reason it is not showing in the phone device list above but look below on lower left under Spaces.  There is now a separate thread for those of us with the HTC Rezound!!

    Thanks for your interest.
    Excuse my ignorance as I'm not sure what you meant by "1 of 5" optimization. Did you mean median of 5 ?
    Regarding swapping pointers, yes it is common sense and rather common among programmers to swap pointers instead of swapping large data types, at the small price of indirect access to the actual data through the pointers.
    However, there is a rather unobvious and quite terrible side effect of using this trick. After the pointer array is sorted, sequential (sorted) access to the actual data throughout the remaining of the program will suffer heavily because of cache misses.
    Memory is being accessed randomly because the pointers still point to the unsorted data causing many many cache misses, which will render the program itself slow, although the sort was fast!!.
    Multi-threaded qsort is a good idea in principle and easy to implement obviously because qsort itself is recursive. The thing is Multi-threaded qsort is actually just stealing CPU time from other cores that might be busy running other apps, this might slow
    down other apps, which might not be ideal for servers. The thing researchers usually try to do is to do the improvement in the algorithm it self.
    I Will try to look at your sorting code, lets see if I can compile it.

  • Already paid need mobile app for ps and ai

    already paid need mobile app for ps and ai on ipad

    Hi Cheskatlu
    The touch apps can be used with Creative Cloud but are sold separately, see this page http://www.adobe.com/products/creativecloud/tools-and-services.html
    Are these the apps you were referencing?
    -Dave

  • Hi, can someone help me, I did my first page in Muse, and I did just for computer, I need to do for tablet and phone, I have to do?  thx

    Hi, can someone help me, I did my first page in Muse, and I did just for computer, I need to do for tablet and phone, I have to do?  thx
    Esto puede ser en español? por favor

    Hello,
    Please refer to the links below, you will find them very useful.
    Adobe Muse Help | Creating a website for Mobile devices
    How to create a mobile website with Adobe Muse | Adobe Muse CC tutorials
    Video Tutorials:
    Design for mobile first | Adobe Muse CC tutorials
    Mobile best practices | Adobe Muse CC tutorials
    Plan your mobile site | Adobe Muse CC tutorials
    Preview your mobile site | Adobe Muse CC tutorials
    How to create a mobile website with Adobe Muse | Adobe Muse CC tutorials
    Regards
    Vivek

  • Please..how to instal libero mail on mi Ipad. I need the parameter for send and receive mail..Thanks

    Please..how to instal "libero" mail on my Ipad. I need the parameter for send and receive mail..Thanks

    FYI: POP will by default, delete messages from the server after downloading them (This applies to most pop clients, computer or mobile). POP is old tech and is not recommended if IMAP or Exchange are available. The default when setting up a g-mail type account is IMAP. Full synchronization with the server. You may also be able to set it up as an Exchange account, allowing for push e-mail and sync of calendars and contacts as well. See the Gmail help pages for instructions.

  • Trying to sell my ipad2 and i cant delete all the data as i need a password for icloud and i dont know what it is and i didnt know i had i cloud account  what do i do ?

    trying to sell my ipad2 and i cant delete all the data as i need a password for icloud and i dont know what it is and i didnt know i had i cloud account  what do i do ?

    Settings-general -reset-erase all content and settings.
    iCloud ID and password should be same as Apple ID.

  • Separate thread for input stream and output stream.

    Hi Techies,
    In a socket connection, can we run the input stream and output stream in separate threads. actually in my case, the input stream will be getting the input regularly and output stream will send data very rare. so if i impelment them in one class then unless there is data to send output stream will be blocked. i was thinking to impelment both the streams in separate threads. is it a good way? so how to implement it. your guidance will be of great help.
    thanks in advance.

    JavaBreather wrote:
    Hi Techies,
    In a socket connection, can we run the input stream and output stream in separate threads.I would say this is the most common way of handling sockets and threads. esp pre-NIO.
    Iis it a good way? so how to implement it. your guidance will be of great help.Once you have a socket, create two threads, one which does the reading and one which does the writing.
    You could use BlockingQueues to abstract access to these threads. i.e. the reading thread reads something from the socket and adds it to the BlockingQueue. The writing thread take()s something froma second BlockingQueue and writes it to the Socket. This way you add things to write or get thing to process by looking at the BlockingQueues.

  • Need your guidance for format and mount the hard disk in linux

    Hi All,
    I presented 100GB in server (RHEL5.6) through SAN. Now I can able to see the hard disk,
    Disk /dev/sda: 107.3 GB, 107374182400 bytes
    255 heads, 63 sectors/track, 13054 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk /dev/sda doesn't contain a valid partition table
    Disk /dev/sdb: 107.3 GB, 107374182400 bytes
    255 heads, 63 sectors/track, 13054 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk /dev/sdb doesn't contain a valid partition table
    Disk /dev/sdc: 107.3 GB, 107374182400 bytes
    255 heads, 63 sectors/track, 13054 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk /dev/sdc doesn't contain a valid partition table
    Disk /dev/sdd: 107.3 GB, 107374182400 bytes
    255 heads, 63 sectors/track, 13054 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk /dev/sdd doesn't contain a valid partition table
    Disk /dev/sde: 107.3 GB, 107374182400 bytes
    255 heads, 63 sectors/track, 13054 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk /dev/sde doesn't contain a valid partition table
    Disk /dev/sdf: 107.3 GB, 107374182400 bytes
    255 heads, 63 sectors/track, 13054 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk /dev/sdf doesn't contain a valid partition table
    Disk /dev/sdg: 107.3 GB, 107374182400 bytes
    255 heads, 63 sectors/track, 13054 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk /dev/sdg doesn't contain a valid partition table
    Now how to configure the multipath and how to use this allocated space.
    Kindly guide me.
    Thanks,
    Muthu

    Linux DM multipath determines whether or not discovered devices are individual devices or whether they are separate paths to one and the same device. This is accomplished by querying the device serial number. To install and configure multipath, please see the DM Multipath Guide available for your OS version installed: https://linux.oracle.com/documentation/.
    If you need more help and examples, check the following thread: multipath -ll command doesn't give any output
    I'm afraid no one can answer your question how to partition and mount your storage space without you giving any information about its purpose.

  • Mac Pro - Separate HD for OSX and Windows?

    Hello Mac Pro users - maybe some of you can help...
    Are going to buy a Mac Pro soon - which will be used for graphic artwork and Windows games. Today I have a Mac and a PC - for the same purpose - and now I want to build the Mac Pro with a harddisk for OSX - and another harddisk for Windows (XP or Vista). Is it possible to have 2 separate HD's (or more) with each systems using the standard setup by Bootcamp - or do I have to make a partition on the OSX HD and then install Windows there?
    I'm asking this pro forum because I can't get a clear answer here in Denmark where I live - a Apple supplier first said it was impossible - then 2 days later, that it was possible, but they will charge me for 2 hours of support - and in another forum some have told me it was easy - but have given me no help how to do it - and again some have told me to use some software called "rEFIt".
    So is it possible - and hard to do?
    If possible, please tell me in steps how to do...
    BR FLASH

    Boot Camp will allow you to
    utilise an entire disk for Windows. If you go to the
    Boot Camp web page you can actually see it in a
    picture…
    http://www.apple.com/bootcamp/
    The only thing you need to be wary of is that the
    Boot Camp Assistant will not wrok from a Mac OS X
    installation that is on a RAID set. As long as you
    boot mac OS X from a single drive then it's really
    easy.
    I had a setup for awhile of two drives in RAID-0 for my Startup drive, a backup single drive, and a separate 300GB drive just for Windows.
    In Windows the "Startup" drive in Control Panel would not show the RAID-0 Startup volume, but I could startup from it by hitting Option when it rebooted.
    Steve

  • Separate CSS for IE and Firefox

    Hi all,
    older versions of Robohelp generated to separate CSS files in the Wephelp for IE and Firefox. Evidently this feature was dropped somewhen. However I need it now to resolve some specific Firefox problems in a project.
    I thought I could add the corrsponding script in the master page that checks for the browser and selects the CSS, but thought I should ask the forum first.. are any solutions for this already known?
    Robert

    If you are sure there is no way around OK but sometimes someone knows a solution. I'm not saying I do, just that sometimes someone will pop their head over the parapet with the answer.
    It used to be the case that bullets were a pain for me until I found out that Firefox's own CSS had an indent that you could negate without affecting IE. Result, almost the same appearance in both browsers.
    I haven't tried it but RoboHelp 10 allows you to write media queries and you can define the browswer. In theory you can have a default style for IE and other browsers but specify a rule that if the browser is Mozilla, the CSS is to be modified.
    That's the cheery theory and I don't know the ins and outs of how well it would work in reality. Do let us know if you decide to take the plunge.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • I currently have one iTunes account for my personal iPod Touch and for my work iPhone and iPad.  Can I create a separate account for work and keep my current account for my personal use - on the same computers?

    I have an iTunes account for my personal iPod Touch - have had for several years.  When my work provided me with an iPhone and now and iPad 2, they all fall under my personal iTunes account.  Is it possible for me to create a separate account for my work devices and apps, while leaving my personal account intact?  I use both my compter at home and at work to sync occasionally.

    A much simpler solution would be to go into Settings > Store and turn off Automatic Downloads

  • Advice needed on monitor for Photoshop and Lightroom use

    Hi. I am aserious amature photographer wishing to move to the next level and sell some of my work.
    I just had a custom pc built to work with the new copies of Photoshop CS5 and Lightroom 3 I bought (lots or RAM and HD space, ssd, etc....)
    The last piece of my system is to purchase a monitor. I want to be somewhere in the better then Best Buy but less than NEC/Eizo range in price, or between $500 - $900. I have worked with cameras since the early 80's and moved to digital several years ago but the only post processing I have done is with Photoshop Elements.  I would be doing mostly prints to sell but also need to have a web site to do so. Will also use the pc for daily net surfing... but do not game or watch a lot of video on the pc.
    Being really new to this whole process I have a few questions.
    The first thing I need to decide is whether I need to look for a wide gamut display or not.
    I realize the whole chain must be 10 bit (Adobe -OS - graphics driver - graphics card - display port.
    I have Adobe Photoshop CS5 and Lightroom 3, Win7 64 bit, Zotac ZT 50701 10M video card (which uses GeForce GTX 560  fermi and an nvidia chipset. It does have displayport). I am having a hard time determining whether my video card actually supports wide gamut (10bit).
    Standard vs Wide Gamut? Is wide gamut important enough to deal with the issues it brings (calibration, viewing things other than PS and LR or color managed, which appear to be rare?) Is sRGB good enough for most prints (don't do fine art, mostly nature and portraits but starting to do some HRD things). If wide gamut is the way to go I have no problem with that and have the time to learn about calibration, color management, etc... But I also want to make sure the juice is worth the squeeze.
    24" vs 27"? Is there any advantage to one or the other when editing photos?
    IPS vs PLS? I realize they are similar but are there differences worth noting?
    Glossy vs Matte Anti-Glare? seems to be a lot of comments regarding the anti-glare coating, mostly poor. Yet I can see issues using a glossy screen in my study with a window to my back.
    One manufacturer vs another? I realize Eizo, NEC and LaCie are at the top of the heap. But with my budget, after upgrading my pc and camera equipment, I can't make that work now. So I need to choose from the next group down (Dell, HP, Samsung, Asus...)
    One or two monitors? It looks like many (mid-grade) wide gamut monitors do a lousy job of displaying anything but color managed sites. Is that necessarily true of all the mid-grades? Or can some be used for graphics but as well for routine net surfing, MS Office, etc...? Or am I better off getting two monitors, one for graphics and one for the rest? That would pretty much limit me to 24" or less given my budget (used to using a Dell 21" TN monitor that oddly crapped out just as my new pc was done).
    The more I read reviews the more confusing it gets. There seems to be a difference of opinion even among pros on whether to go wide gamut or stick with an easier sRGB. Realizing a standard gamut monitor would be cheaper, I do want to make the right decision up front, given my budget.
    The one thing I have found astounding is that there is nowhere to actually see many of the monitors I am considering. We live in Nashville TN but my wife is from Atlanta Ga so we drove there a few weeks ago to visit family and for me to visit monitor shops. Even the largest ones there (Fry's and Microcenter) had minimal IPS monitors, a few Dells and HP's. The knowledge of their sales folks was so poor I finally gave up. Felt bad about this until I posted this on another board and got a reply from a guy in LA (second largest city in the US) that he wanted to see a particular monitor and there was no place even there to do so.
    Anyhow, here is what I have considered:
    24" Wide Gamut: Dell U2410 and Asus PA246Q. Dells appear to be good IF you get a good one. The Asus appears to be a clone of the Dell that gets a lot of good press.
    27" Wide Gamut: Dell U2711 that also gets a ton of good reviews
    24: Standard Gamut: Dell U2412 and HP ZR2440.
    27" Standard Gamut: Samsung S27A850D and Apple Cinema- The Samsung uses PLS technology versus IPS while the Apple is a glossy screen that will work with a pc.
    Sorry for the long post. Any comments are greatly appreciated.

    dkg62 wrote:
    I realize the whole chain must be 10 bit
    Not trying to talk you out of setting up a 10 bit pipeline, but it's still not very mature, and it really isn't a necessity to get a good editing experience.
    Personally I find advantage in using two 4:3 ratio monitors for Photoshop work.  All my panels are on the right monitor, while pretty much the entire left one shows the Photoshop main window and the working canvas space.  My desktop is 3200 x 1200 pixels overall, and I find having the panels remain visible all the time is important.
    Regarding whether a wide gamut is important...  Will you be printing to devices that deliver a wide gamut?  What other things will you be doing with your system?
    It's not a no-brainer whether a wider gamut monitor is always "better" for everything, since it can accentuate the differences between the output from color-managed and non-color-managed applications, and it's definitely true that not everything is color-managed.  With a monitor that's close to sRGB, for example, you might find Internet Explorer output acceptable, while using a wide gamut monitor will result in garishly oversaturated IE displays.  On the other hand, FireFox (with a settings tweak) seems to get color management right, so there is an alternative.
    I think, as John has implied above, you should work to get your head completely around how color-management works, soup to nuts.  If you don't, there will always be things that are a mystery or which surprise you at the wrong times.  Being able to order a print and have it come back with the expected color can be very important, as you might imagine.
    -Noel

Maybe you are looking for