Search Results

Search found 2 results on 1 pages for 's093294'.

Page 1/1 | 1 

  • Asus Z8NA-D6, not powering up/no signal for monitor

    - by s093294
    I have a Asus Z8NA-D6 motherboard. Been running fine so far with one E5504 Xeon processor. I have added another Xeon E5504 CPU to the second slot and it will not power up (or there is no signal to the monitor). The status lights turn on as normal. no error led. Nothing happens other then the leds start and both cpus/fans power up. HDD power up. I tried clearing CMOS. Any sugestions? http://www.asus.com/Server_Workstation/Server_Motherboards/Z8NAD6/#download Update. Removing ram for second cpu makes it boot atleast. itboots with memory pluged in for cpu 1. (2 4gb modules) when addin one more to the second cpu it still boots but bios only see the 2 blocks at cpu 1)

    Read the article

  • What is the right pattern for a async data fetching method in .net async/await

    - by s093294
    Given a class with a method GetData. A few other clients call GetData, and instead of it fetching data each time, i would like to create a pattern where the first call starts the task to get the data, and the rest of the calls wait for the task to complete. private Task<string> _data; private async Task<string> _getdata() { return "my random data from the net"; //get_data_from_net() } public string GetData() { if(_data==null) _data=_getdata(); _data.wait(); //are there not a problem here. cant wait a task that is already completed ? if(_data.status != rantocompletion) _data.wait() is not any better, it might complete between the check and the _data.wait? return _data.Result; } How would i do the pattern correctly? (Solution) private static object _servertime_lock = new object(); private static Task<string> _servertime; private static async Task<string> servertime() { try { var thetvdb = new HttpClient(); thetvdb.Timeout = TimeSpan.FromSeconds(5); // var st = await thetvdb.GetStreamAsync("http://www.thetvdb.com/api/Updates.php?type=none"); var response = await thetvdb.GetAsync("http://www.thetvdb.com/api/Updates.php?type=none"); response.EnsureSuccessStatusCode(); Stream stream = await response.Content.ReadAsStreamAsync(); XDocument xdoc = XDocument.Load(stream); return xdoc.Descendants("Time").First().Value; } catch { return null; } } public static async Task<string> GetServerTime() { lock (_servertime_lock) { if (_servertime == null) _servertime = servertime(); } var time = await _servertime; if (time == null) _servertime = null; return time; }

    Read the article

1