How should implement multi-thread in single-threaded Operating system using

How should implement multi-thread in single-threaded Operating system using java?
Java supports "Multi-threading".Is there is any way run the multiple threads (Implementing multi threading) using java in a Single-threaded Operating system (That is the operating system does not support for multi-threading).

Previous questions from OP suggest they are using J2ME, so the question might be possible.
806437 wrote:
How should implement multi-thread in single-threaded Operating system using java?
What is the actual question/problem?
A java app doesn't do threads or not do threads. It uses classes. The VM does threads.
So if you have a platform that does not have threads and you want to support the thread class then the VM, not a java app, must provide some pseudo mechanism, such as green threads, to support that.
If your question is about java code and not the VM then you must build a task engine and insure that the tasks are of short enough duration that it is an effective use for your system.

Similar Messages

  • How much space on the hard/flash drive does the Operating System use on the macbook

    I Would like to buy a MacBook but the actual space on the flash hard drive is quite minimal. How much of this small space does the operating system use?

    In order for Yosemite needs to have at least 10 GB of free space for the use of OS X and the things it does. If you have less then that the performance with start to degrade until eventually OS X will freeze up.
    If you think you will be getting close to that you might want to consider getting and external disk drive where you can store some of your file such as music, videos movies and photos.

  • How to improve spreadsheet speed when single-threaded VBA is the bottleneck.

    My brother works with massive Excel spreadsheets and needs to speed them up. Gigabytes in size and often with a million rows and many sheets within the workbook. He's already refined the sheets to take advantage of Excel's multi-thread recalculation and
    seen significant improvements, but he's hit a stumbling block. He uses extensive VBA code to aid clarity, but the VB engine is single-threaded, and these relatively simple functions can be called millions of times. Some functions are trivial (e.g. conversion
    functions) and just for clarity and easily unwound (at the expense of clarity), some could be unwound but that would make the spreadsheets much more complex, and others could not be unwound. 
    He's aware of http://www.analystcave.com/excel-vba-multithreading-tool/ and similar tools but they don't help as the granularity is insufficiently fine. 
    So what can he do? A search shows requests for multi-threaded VBA going back over a decade.
    qts

    Hi,
    >> The VB engine is single-threaded, and these relatively simple functions can be called millions of times.
    The Office Object Model is
    Single-Threaded Apartments, if the performance bottleneck is the Excel Object Model operation, the multiple-thread will not improve the performance significantly.
    >> How to improve spreadsheet speed when single-threaded VBA is the bottleneck.
    The performance optimization should be based on the business. Since I’m not familiar with your business, so I can only give you some general suggestions from the technical perspective. According to your description, the size of the spreadsheet had reached
    Gigabytes and data volume is about 1 million rows. If so, I will suggest you storing the data to SQL Server and then use the analysis tools (e.g. Power Pivot).
    Create a memory-efficient Data Model using Excel 2013
    and the Power Pivot add-in
    As
    ryguy72 suggested, you can also leverage some other third party data processing tool
    according to your business requirement.
    Regards,
    Jeffrey
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to implement multi-source XSLT mapping in 11g PS3 BPEL  ?

    Hi
    How to implement multi-source (single destination) XSLT mapping in 11g PS3 BPEL ? Is there any good example step by step ?
    thx
    d

    Hi d,
    Also there's a sample available at samplecode.oracle.com mapper-105-multiple-sources.zip.
    Regards,
    Neeraj Sehgal

  • I have take pictures from my ipad 4. How to download to my computer with windows operating system conneted through USB cable with out using internet

    I have take pictures from my ipad 4. How to download to my computer with windows operating system conneted through USB cable with out using internet

    Plug your iPad into your computer. THere may be a delay while it installs drivers but if you can see your iPad in windows explorer, use that to get to your photos.
    Click on your iPad and you should see a DCIM folder. Click thorugh that to find your photos.
    Windows explorer will see your iPad as nothing more than a digital camera, and that's the part you're trying to access.

  • How do I create multiple live USBs of Operating systems to boot from on one flashdrive?

    How do I create multiple live USBs of Operating systems to boot from on one flashdrive?
    I am attempting to create multiple live USBs within one flashdrive so that i can boot various operating systems without having to buy multiple USb sticks. I am using a Mac OS X Snow Leopard 10.6.8 Operating System currently. I am using the Terminal provided by the OS.
    I would like to try Debian, Kali, Precise Puppy, and Sabayon- with one space left empty for whatever Linux OS I would like to try next. I have partitioned an 8GB flashdrive into the following sections:
    name of intended OS,     space allocated for it:
    1)Debian ........................1.32 GB
    2)Kali..............................2.61GB
    3)Precise Puppy..............163.7MB
    4)Sabayon.......................1.77GB
    5)TBD..............................2.14GB
    I have figured out how to change the .iso files of the operating systems into .img files with the following commands:
    hdiutil convert -format UDRW /path/to/input.iso -o /path/to/output.img
    a .img.dmg file is created, this is corrected in the next line of code *please note: I am a a very beginner at programming, and would greatly appreciate any help. Thank you!
    mv /path/to/output/file.img{.dmg,}
    This is where I started to get confused:
    I entered diskutil list to find the location of the partitions on my flashdrive, and this is the relevant section:
    /dev/disk1
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:     FDisk_partition_scheme                        *8.0 GB     disk1
       1:                 DOS_FAT_32 DEBIAN               1.3 GB     disk1s1
       2:                 DOS_FAT_32 KALI                    2.6 GB     disk1s2
       3:                 DOS_FAT_32 PRECISE            163.7 MB   disk1s3
       4:                 DOS_FAT_32 SABAYON           1.8 GB     disk1s5
       5:                 DOS_FAT_32 TBD                     2.1 GB     disk1s6
    This is the code I attempted to use and the subsequent result:
    charles-burtons-mac-mini:~ charlesburton$ sudo dd if=/Users/charlesburton/Desktop/debian-live-7.2-i386-gnome-desktop.img of=/dev/disk1s1 bs=1m
    dd: /dev/disk1s1: Resource busy
    *at this point I went to the Disk Utility GUi and unmounted only the DEBIAN partition, now back to the terminal*
    charles-burtons-mac-mini:~ charlesburton$ sudo dd if=/Users/charlesburton/Desktop/debian-live-7.2-i386-gnome-desktop.img of=/dev/disk1s1 bs=1m
    dd: /dev/disk1s1: end of device
    1259+0 records in
    1258+1 records out
    1320005632 bytes transferred in 1011.966891 secs (1304396 bytes/sec)
    Please may someone help explain why I had a return value of +1 in my records in and how I can make it work properly.

    I would like to know the answer to this as well.  I tried renaming the 3D version by adding 3D after it, but it still not a separate movie in iTunes.
    It's putting them in the same folder.

  • How do i go back to my old operating system? now i can't play my photos on apple tv with lion os

    how do i go back to my old operating system? now i can't play my photos on apple tv with lion os

    There's an overview here
    http://applehelpwriter.com/2011/09/10/how-to-turn-a-lion-into-a-snow-leopard/

  • How to add tape drive in hyper V operating system

    how to add tape drive in hyper V operating system
    tape drive may be to scsci or USB port.
    how to add pls suggest

    how to add tape drive in hyper V operating system
    tape drive may be to scsci or USB port.
    how to add pls suggest
    You need something like StarWind Tape Redirector that "iSCSI-izes" hardware attached to host. So you'll be able to connect with iSCSI initiator from inside a VM running on this host, some other host or even other physical machine (as long as it
    has iSCSI connectivity), see:
    StarWind Tape Redirector
    http://www.starwindsoftware.com/download-starwind-tape-redirector
    So at the end of the day you'll have something like on the picture below:
    Good news: this software offering is 100% free so you don't need to pay anything to anybody :)
    Hope this helped!
    StarWind Virtual SAN clusters Hyper-V without SAS, Fibre Channel, SMB 3.0 or iSCSI, uses Ethernet to mirror internally mounted SATA disks between hosts.

  • Yosemite looks like a downgrade, flat, childish and no more ability to make the view of anything personal.  How do I go back to the previous operating system?

    Yosemite looks like a downgrade, flat, childish and no more ability to make the view of anything personal.  How do I go back to the previous operating system?

    Erase your hard drive using Disk Utility from the Recovery HD, then restore your old system from your backups.

  • How to upgrade ( touchsmart 610-1130f ) under Linux Operating System: Ubuntu 10.11

    How to upgrade ( touchsmart 610-1130f ) under Linux Operating System: Ubuntu X11
    Unfortunatly didn't do it before erasing Win Se7en.

    I got the answer: If your operating systemt is not listed, we don't have upgrade for you.  If I knew that I woud'nt buy a HP computer.

  • How to upgrade ( touchsmart 610-1130f ) under Linux Operating System: Ubuntu 11.10

    How to upgrade ( touchsmart 610-1130f ) under Linux Operating System: Ubuntu 11.10
    Options 
    How to upgrade ( touchsmart 610-1130f ) under Linux Operating System: Ubuntu X11
    Unfortunatly didn't do it before erasing Win Se7en.

    I got the answer: If your operating systemt is not listed, we don't have upgrade for you.  If I knew that I woud'nt buy a HP computer.

  • I downloaded microsoft office to my MBP and my question is how do i get the right file or operating system to open it and so that i can use it?

    i downloaded microsoft office to my MBP and my question is how do i get the right file or operating system to open it and so that i can use it?

    Welcome to the Apple Support Communities
    There are two Office versions: Office for Windows, and Office for Mac.
    I suspect that you have downloaded Office for Windows, and you can use it if you install Windows, but a cheaper and easiest way to use Office is to use Office for Mac, so you won't have to install Windows. See > http://www.microsoft.com/mac

  • What's the go with this latest update. Half my apps don't work and the iPad runs slower? How do I go back to the old operating system?

    What's the go with this latest update. Half my apps don't work and the iPad runs slower? How do I go back to the old operating system?

    Make sure your apps are updated.  You might try Settings > iTunes & App Store > Automatic Downloads - Updates = "On".
    You cannot go back to an old operating system.

  • How do you receive latest podcasts on new operating system music app?

    How do you receive latest podcasts on new operating system music app? I can't seem to find the get new episode option. I have to go to iTunes search for my podcasts and then update.

    Try this:
    Settings > General > Accessibility > Large Text

  • I do not know what I should phone is locked after changing the operating system

    I do not know what I should phone is locked after changing the operating system , have the original box , receipt lost, Apple said that it is necessary to support the receipt of the first as I can not find the receipt of the first purchase when I moved to another country . I now throw my iPhone ?

    It depends what you mean by 'locked' - it can mean locked by a passcode or linked only to one particular carrier (service provider). If the latter, see the post above; if it's a passcode issue:
    1. Assuming this was bought new and you have set up Activation Lock and forgotten the passcode, please see this page:
    http://www.lifehacker.co.uk/2011/10/24/youve-forgotten-iphones-passcode
    2. If you bought it second-hand (used) - though this is not the impression I get from you post - then only the previous owner can unlock it.

Maybe you are looking for