• Breaking News

    Thursday, January 11, 2018

    Question about addressing Computer Science

    Question about addressing Computer Science


    Question about addressing

    Posted: 11 Jan 2018 01:54 AM PST

    If I have 16 kB of data in a block, and the data is byte-addressable then does that mean I can address 16000 different bytes within a block individually?

    Does that mean I'd require 14 bits (per block) to access each individual byte?

    (As 214 ≈ 16000)

    submitted by /u/DarkBlaze99
    [link] [comments]

    What was your final year project and how would you have done it differently?

    Posted: 10 Jan 2018 02:54 PM PST

    How industrial PC have changed since IBM introduced its first hardened PC

    Posted: 11 Jan 2018 01:26 AM PST

    Counting weekends between two dates?

    Posted: 10 Jan 2018 07:44 AM PST

    I'm trying to count the number of weekends between two dates and I thought this would work:

    public int TotalWeekendsBetweenTwoDates(DateTime startingDate, DateTime endingDate) { TimeSpan totalTime = endingDate - startingDate; int TotalDays = totalTime.Days; int TotalWeeks = TotalDays/7; int TotalWeekends = TotalWeeks*2; return TotalWeekends; } 

    However when I tested it with two date (4/6/2018 - 12/6/2018) it told me there were 68 weekends when there were actually 70. I'm not sure what I did wrong but I thought my logic was correct.

    • Calculate total number of days
    • Divide by 7 to get weeks
    • Multiply by 2 to get weekends
    submitted by /u/IsabelAlphonse
    [link] [comments]

    [Idiot here] Explain to an idiot how does NUMA work?

    Posted: 10 Jan 2018 01:16 PM PST

    Non-uniform memory access, yeah right? By reading the Wikipedia article I cannot understand a bit.

    Non-uniform memory access (NUMA) is a computer memory design used in multiprocessing, where the memory access time depends on the memory location relative to the processor. Under NUMA, a processor can access its own local memory faster than non-local memory (memory local to another processor or memory shared between processors). The benefits of NUMA are limited to particular workloads, notably on servers where the data is often associated strongly with certain tasks or users.

    This is what Wikipedia says and I cannot understand what do they mean by that (probably due to the reasons I mentioned in the title).

    Do they mean by local memory, the local cache the processor has or do they mean a small fragment of the main shared memory?

    Can someone give me a clear one-sentence definition of what NUMA is?

    I apologise for the silly question but I just can't understand it.

    submitted by /u/ElliotSpelledBackwar
    [link] [comments]

    Can someone explain to me how to install my processor?

    Posted: 10 Jan 2018 11:03 PM PST

    I just bought a cherry pi and I'm looking to install it. I tried sticking peanut butter into it but that caused the circuits to explode after plugging it in. So I bought a new one and tried just plugging the hdmi port into the tv i had. It only had audio and video so I cut the wires and stuffed them into the tv and that didn't work

    Please help?

    submitted by /u/kibleh
    [link] [comments]

    At what layer should Meltdown and Spectre be addressed?

    Posted: 10 Jan 2018 02:30 PM PST

    I am sure we are all having a great time reading about meltdown and spectre.

    Now Intel and AMD are working on patches to microcode. Once those are released and implemented why does the operating system need to change?

    We have patches coming out for CPUs, for operating systems and for applications.

    It seems to me that it should be enough to fix it in one layer.

    (Unless for instance the CPU patch introduces a new op then the OS needs to know about it, and be recompiled)

    Do we need patches at each level or is everyone just scrambling to fix the different issues now and we will just see what works down the road?

    submitted by /u/NoeticIntelligence
    [link] [comments]

    HC7 Planetary Ransomware May Be the First to Accept Ethereum

    Posted: 10 Jan 2018 09:34 AM PST

    No comments:

    Post a Comment