Linux Vrs Windows

Consider a Java class that has been compiled on Windows. When the same compiled class is loaded for execution on Windows and on UNIX, which of the following answer choices pertaining to memory allocation of primitive data types in the class is correct?
A. More memory is allocated on UNIX machines than memory allocated by Windows machine.
B. Amount of memory to be allocated is determined by JVM at the runtime based on the hardware configuration and operating system.
C. Program compiled on Windows cannot be installed on UNIX machine      for execution.
D. Same amount of memory is allocated on both the operating systems, size does not change based on the operating system or hardware configuration.
Can anyone help??

Hi,
The size of all primitive data types is the same on all OS-es and JVMs, apart for float and double. As far as I know, the memory size of all Object references are the same on all OS-es and JVMs. As for the possibility of running code compiled on Windows on UNIX or Linux: Java is platform independent, so it will run, providing you code OS depend stuff (like paths to files and directories etc) correctly.
HTH, Wouter van Reeven

Similar Messages

  • [SOLVED]Arch Linux, and Windows 8.1 Dual Boot issue

    Hi guys. I recently bought a new laptop, and decided to run Arch Linux and Windows 8.1. I installed Windows 8.1 first as recommended by the beginners guide, and then installed Arch Linux. I made sure UEFI was enabled in my BIOS, and made sure everything was on a GPT partition. The install itself went fine. My laptop loads grub, and Arch Linux shows up and boots, but there is no option to boot into Windows 8.1. The only way I can boot into Windows 8.1 is by accessing my motherboard, and choosing to launch the windows boot manager instead of the grub launcher. How can I get Windows 8.1 to show up in grub? Thanks in advance guys.
    Last edited by Painguy (2014-08-20 20:19:37)

    Painguy wrote:
    -----------Edit------------------
    Yeah just ran this after installing os prober
    grub-mkconfig -o /boot/grub/grub.cfg
    and it works now. Sorry for the crazy posts guys. Thanks for the suggestions and help.
    Yeah I'm sure I'm doing something wrong lol. I did not install OS-Prober. I think that's where the issue is. I'm missing the menu entry in grub.cfg right? Do I just run os prober or do I have to manually edit grub.cfg.
    If that's not the case then here is what I did up until now. What I did was start with a blank SSD drive. I used cgdisk to make the disk use a GPT partitioning scheme. I installed windows 8.1 and checked in windows to make sure it boots into UEFI-GPT mode and it does.  I then installed arch linux using the beginners guide. I made sure to use cgdisk to create any extra partitions, and installed GRUB to the efi partition that windows had created ( I did not format this partition ). I then finished the installation and rebooted, and Grub only shows arch linux. I don't think I'm dealing with anything MBR related. I made sure I used the GPT partitioning scheme....i think lol.
    All you need to do is run os-prober then run grub-mkconfig. It should pick up Windows at that point.

  • How to set owner-only access file permissions both on Linux and Windows

    Hi everybody.
    I have the following problem. I need to store some private user information in file system. So I need to set owner-only access permissions for some directory in user home. I did not find API for doing this. As I understand this is platform specific thing. Could anybody tell me how can I do this both on Linux and Windows?
    Thank you in advance.

    More ideas just came back to me (of something I did before)
    Each OS requires a different control.
    For Windows you will need to set the .policy file for each user (a pain if you have more than a dozen of clients) granting access (R or RW) to files/directories.
    Then you have to write some native code (access via JNI) to access/modify your authorization.
    A more professional solution that I used was J-Integra (other similar tool exist).
    Basically it is a bridge between Java and COM. It magically give you access to the COM API from Java (and vice versa).
    In my case it was to read/write/modify Winword documents transfered between PC and server.
    From memory you have to run the com2java.exe to build the bridge (classes in Java language) between the 2 families. Compile those classes and you have a "driver" for the COM (Microsoft Objects).
    Here I must confess my ignorance on Microsoft.
    Those COM objets must give you some easy/integrated access to the API for LDAP or Microsoft Active Directory Service (for centralize control with more complex setup).

  • Dual boot kali linux with windows 8

    i have ideapad y510p and i want to dual boot kali linux with windows 8 
    i want a full guide to do it please !!help!!!

    Hello,
    if you got problems with the kernel, you can try backbox-linux. The kernel there is newer. It is based on Ubuntu 12.04 LTS.
    Have a nice day
    thoschi
    LENOVO IDEAPAD Z710 59403383,i7-4700MQ,8 GB DDR3-RAM,1.920 x 1.080 Pixel,NVIDIA® GeForce® GT 740M,Hybrid (1 TB S-ATA + 8GB SSD)

  • Oracle DB sessions on Linux and Windows

    Actually I am confused the way session memory is allocated on 32 bit windows and linux OS.
    Windows is a thread based architecture where all user sessions are treated as threads of oracle.exe process. The addressable space is 4GB and oracle.exe can use up to 3GB in case you use /3GB switch in boot.ini file. It means that combined size of SGA ,PGA and other memory structures can not be more than 3GB. When a session gets connected with a database a PGA is allocated. It means that memory required by database sessions also comes from the 3GB limit. If your memory usage goes beyond 3GB you wont be able to connect new sessions with database or you would require to reduce the size of one of your SGA components.
    Linux is a process based architecture where each user session is treated as a separate process and has its own addressable space. Even on 32bit linux the addressable space is 4GB i.e. 2GB for process and 2GB for kernel. It means we need to accommodate our SGA and PGA in the 2GB limit (there are ways to increase the size of SGA but let assume we are doing nothing to raise the 2GB limit).
    As PGA is allocated for every session when it connects with database.
    My question is how PGA memory is allocated against a database session on linux.
    To further clarify my question I am stating the results of an experiment that I did on linux and windows.
    On windows I set the total size of SGA to 1730M and PGA aggregate target to 1024M. I was able to able to startup the database instance without any issue. Then I started connecting sessions with the database and even ran a query doing a heavy sort in one of the sessions but after connecting 10 sessions with DB I started getting ORA-12500 TNS Listener failed to start a dedicated server process error on windows.
    Then I did the same experiment on Red Hat Linux. SGA size was 1633MB and where as PGA aggregate target was only 10MB. I was unable to start instance when I set the SGA size more than 1633MB.
    With that setting I was able to connect more than 200 sessions with database inspite of running query doing heavy sort in 4 sessions without getting ORA-12500 error. I was even able to connect more than 400 sessions with database after setting PGA aggregate target to 1GB on Linux.
    Now my confusion is why linux was able to handle more DB sessions. I know it’s a process base model and each session is a separate process and has its own addressable space but as PGA is allocated against every session and PGA memory comes from 2GB limit then why PGA memory did not exhaust on linux. Is PGA allocated differently on linux as compared to windows?

    Perhaps the problem is easier to understand if you leave PGA_AGGREGATE_TARGET out of this issue completely.
    The out of memory problem you had, has nothing to do with PGA_AGGREGATE_TARGET setting directly. The difference in number of processes comes from architectural differences in how Oracle uses memory in windows vs unix.
    On windows the SGA + ALL PGAs must fit into one 4GB address space (in practice even smaller as youve noticed). This is because there's only one process, oracle.exe. One process = one address space.
    On Unix, you have many processes and every process can use portion of their own address space for PGA.
    So, on windows (32bit) you run out of address space for the single oracle.exe process. On unix you dont hit this limit just because the number of processes grows (but if some process wants to use a lot of PGA memory, then they eventually run out of address space (talking about 32bit again))
    On unix you probably ran into another limit - amount of total usable virtual memory (RAM+swap) available in your system
    Tanel Poder
    http://blog.tanelpoder.com

  • Which operating system: Linux or Windows Server 2003?

    Hi,
    it doesn't matter which operating system we install an our server.
    What are your experience with Linux and Windows?
    Which System do you recommend regarding performance issues?
    best regards
    Felix

    Linux has a higher per process memory limit. The fmscore process can use up to 2 GB on Windows and up to 3 GB on Linux.
    The performance increases in Flash Media Server 3.5 are roughly equivalent on Linux and Windows.
    HTH,
    Jody

  • Error in Transport Tablespace from linux to windows

    I am testing the cross-Platform Transport Tablespace. As per the oracle, we can transport tablespace from linux to windows without conversion because both are using same endian (Little).
    But i am fail to do Transport Tablespace from Linux to Windows.
    I am performing Transport Tablespace process as following:
    from Source Oracle Database server(red had linux as 4 32-bit oracle version:10.2)
    Sql> alter tablespace TEST read only;
    $ expdp system/pass dumpfile=test.dmp directory=export_dir transport_tablespaces=test transport_full_check=y
    after this i am coping test.dmp and data file (test.dbf) to the target machine (ms windows xp 32-bit with oracle 10.1) .
    on Target Machine (with Ms windows xp os) here i am giving the following command:
    impdp system dumpfile=test.dmp directory=exp_dir transport_datafiles=/exp_dir/test.dbf
    but it is giving following error:
    ora-39001: invalid argument value
    ora-39000: bad dump file specification
    ora-31619: invalid dump file "c:\pks\1103.dmp"
    what may by ...
    Prabhaker

    now for version compatibility i am inclusding version option with expdp
    edpdp scott dumpfile=1103.dmp directory=pks transport_tablespaces=prabhu version=10.1.0.2.0
    but now it is giving following error:
    Import: Release 10.1.0.2.0 - Production on Saturday, 11 March, 2006 19:07
    Copyright (c) 2003, Oracle. All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Master table "SCOTT"."SYS_IMPORT_TRANSPORTABLE_01" successfully loaded/unloaded
    Starting "SCOTT"."SYS_IMPORT_TRANSPORTABLE_01": scott/******** DUMPFILE=1103.DMP DIRECTORY=PKS TRANSPORT_DATAFILES=C:\PKS\PRABHU version=10.1.0
    Processing object type TRANSPORTABLE_EXPORT/PLUGTS_BLK
    ORA-39123: Data Pump transportable tablespace job aborted
    ORA-06550: line 2, column 2:
    PLS-00306: wrong number or types of arguments in call to 'BEGINIMPORT'
    ORA-06550: line 2, column 2:
    PL/SQL: Statement ignored
    Job "SCOTT"."SYS_IMPORT_TRANSPORTABLE_01" stopped due to fatal error at 19:07
    regards
    Prabhu

  • Linux or windows hosting?

    I am publishing my site on iweb via godaddy- i have a choice to use linux or windows for hosting- which one?

    Rhonda Ferguson wrote:
    I am publishing my site on iweb via godaddy- i have a choice to use linux or windows for hosting- which one?
    Linux

  • Linux or windows?   godaddy

    I'm looking at the godaddy hosting plans, and it asks Linux or Windows-based, not giving a choice for Mac OS. I presume that it still works with Mac. Which one should I select? I intend to make pages with iWeb on a mac, and then host them outside of .mac.

    Linux. Windows is just potential for trouble.
    You can find some tips here:
    http://homepage.mac.com/thgewecke/iwebserver.html

  • Linux or Windows

    I have the option to use either multiple Linux or Windows
    servers.
    These servers will be dedicated purely to the media server.
    Any opinions on which would be better for live streaming in
    the most part.
    Alan

    I wouldn't consider running a production database in a non-supported configuration. That's a bit like walking a tightrope without a net. If you can't purchase a supported Linux configuration, I'd strongly suggest going with Windows.
    If you can purchase a supported Linux configuration, there would be two criteria I'd use to determine which O/S to use. First is the ease of scripting. For 99% of the people out there, Linux's scripting facilities are orders of magnitude better than those in Windows. Given how many DBA type tasks ought to be automated, this gives a strong nod to Linux. The other criteria would be the organization's familiarity with each O/S. If you have a bunch of Windows wizards, go with Windows. If you have a bunch of Linux/ Unix gurus, go with Linux.
    Justin

  • Is possible restore backup full from linux to windows?

    Is possible restore backup full from linux to windows, I need know if is possible.
    There are any document about it?

    Hi
    Yes because They are in little endian.
    http://apunhiran.blogspot.com.tr/2009/03/how-to-moveconvert-database-from-linux.html
    Regards

  • Unable to set focus for Linux / X-Windows ($$$ for fix...)

    It appears whenever a modal window is opened on Linux X-Windows the focus is stolen from the window and you CANNOT use the keyboard to return to the form - let alone set the focus on the textbox.
    This is not just for my modal forms but for something as fundamental as JOptionPane or simple code like this:
    JFileChooser chooser = new JFileChooser();
    if (chooser.showOpenDialog(parentComponent) == JFileChooser.APPROVE_OPTION) {
    From trolling through posts I can see no answers which is really sad for Linux good for Microsoft I guess. How can we deploy on Linux if you are forced to get carpal tunnel clicking on every form with the mouse ?
    I would be willing to pay some consulting dollars to get this resolved.
    Greg

    Hm, I've developed quite a bit for X11 and linux, but I never noticed that effect. Can you post a SSCCE that reproduces the issue, just to be sure it is not a side-effect from your code?
    It this is a persistent problem, you might want to make your dialog re-request the focus programmatically:
    myDialog.setVisible(true);
    SwingUtilities.invokeLater(new Runnable() {
      public void run(){
        myDialog.requestFocus();
    }See if this does anything. If not, the problem is most likely not coming from swing.

  • GetTimezoneOffset got one hour ahead on linux than windows

    I'm using Date object to retrieve current local time for
    display. But got one hour ahead than the system time.
    For an example, I set the system time zone to Hong Kong,
    China. The getTimezoneOffset() return -540 on linux, but on
    Windows, it's -480. So, the time in flash is one hour ahead than
    the system time.
    I have checked that the getUTCHours() return the same result
    on linux and windows.
    Any Suggestions?
    thx!

    Can somebody please confirm/deny this.
    FP 9 on Linux shows time one hour ahead than the local time.
    Try following line with FP9 on Linux
    trace("Current Time "+new Date());

  • IMacs can boot Linux or Windows from usb stick

    iMacs 21' can boot Linux or Windows from usb stick? from Firewire 400 or 800 hdd/ssd? from USB HDD/SSD?
    May boot fromCD/DVD/DVDDL in internal DVD DRIVE, too?
    Exist Blu-ray drives able connect on Thunderbolt slot on iMac 21'?

    Here is the memo of the steps I followed. Hope this helps.
    <Create VHD image in temp folder at local drive>
    diskpart
    create vdisk file=C:\Temp\Win2go.vhd maximum=20480 type=fixed
    select vdisk file=C:\Temp\Win2go.vhd
    attach vdisk
    exit
    <Create partition in VHD, format in NTFS and assign drive letter "O">
    diskpart
    list disk
    select disk n (n is a number of VHD)
    clean
    create partition primary
    format fs=ntfs quick override
    assign letter=o
    active
    attribute volume set NODEFAULTDRIVELETTER
    exit
    <Execute "DISM" utility in Windows DVD and extract installer image to VHD>
    G:\sources\dism /apply-image /imagefile:G:\sources\install.wim /index:1 /applydir:O:\
    ** "G" is drive letter for Windows DVD
    ** "O" is drive letter for VHD partition
    <Write boot program into VHD>
    O:\windows\system32\bcdboot O:\windows /f ALL /s O:
    ** "O" is drive letter for VHD partition
    <Detach VHD>
    diskpart
    select vdisk file=C:\Temp\Win2go.vhd
    detach vdisk
    exit
    <Format USB thumb drive in NTFS>
    diskpart
    list disk
    select disk n (n is a number of USB thumb drive)
    clean
    create partition primary
    format fs=ntfs quick override
    active
    exit
    ** "E" is drive letter for USB thumb drive
    <Write loader into boot sector>
    G:\boot\bootsect /nt60 E:
    ** "G" is drive letter for Windows DVD
    ** "E" is drive letter for USB thumb drive
    <Copy VHD file to USB thumb drive and mount>
    copy C:\Temp\Win2go.vhd E:\
    diskpart
    select vdisk file=E:\Win2go.vhd
    attach vdisk
    exit
    <Write boot info into USB thumb drive>
    F:\Windows\system32\bcdboot F:\Windows /s E: /f ALL /v
    ** "E" is drive letter for USB thumb drive
    ** "F" is drive letter for VHD partition on USB thumb drive

  • File Transfer from LINUX to WINDOWS....?

    I have to copy the auto backup .dmp file from Linux to Windows in Same Network. Can You please suggest me how to do this task through Shell Script.
    So i can schedule the running time of Shell script through DBMS_SCHEDULER and at that specified time files will copy successfully....
    Please help me...Thank you.

    Rajnish,
    Check this link :  Scripting and Task Automation :: WinSCP
    Command-line Options :: WinSCP
    Converting Windows FTP script to WinSCP SFTP script :: WinSCP
    Onkar
    Message was edited by: onkar.nath

Maybe you are looking for

  • Processing exception during a "Render" operation -- adobe form

    Hi All, I am getting following error when I am running any adobe form including tutorials from sdn. com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Error during call to AdobeDocumentServer: <b>Processing exception during a "Render"</b> o

  • Regarding BDLR, SXDB and BMVO Tcodes

    Hello, I want to know if there is any standard method to upload material master, customer master, vendor master and finance master data into SAP system. I am not referring to LSMW's, BDC's and using BAPI's. I am aware of standard programs like RMDATI

  • Nexus 7010 port-channel to ESXi host running on Dell 910 and 810

    Was wondering has anyone had any experience with configuring a port-channel going back to ESXi host. My basic config is below. My issue is with what to put in the spanning-tree port type. Do I use normal, edge, network, or edge trunk?? Yes I have rea

  • Complete uninstall of CR XI SP1

    Hi how do I compleatly uninstall CR XI from my server? Not just going through the add remove function or the uninstall on the disk. I need to manually find any place the system is being installed including on my registry. Thank you Gad

  • Show transaction in portal without navigation option

    Hello, I've created a z transaction in R/3. I need to show it in portal with some buttons (not all) and without navigation option to other transactions. I have a problem because I don't understand properly what type of iView do I have to create: Tran