cantfindagoodname

@cantfindagoodname

Joined on Feb 19, 2022

  • Link :::info lf : last level lg of node in same level is equal to lg of leftmost node with floor ::: void minheap_init(unsigned long nr_items, struct heap_item *h) { unsigned long lf = log2_floor(nr_items);
     Like  Bookmark
  • Role of mutex in Fibonacci driver gist There are no shared resources in algorithm of calculating Fibonacci sequence itself, hence no critical section are present in the algorithm. Shared resources are needed when we wish to store "Computed result" to not waste CPU cycle on recomputing the values. There are repeating computation without dynamic programming, For an example, Fib(1) are called twice. We can calculate Fibonacci sequence bottom-up by storing result their result in an array.
     Like 1 Bookmark
  • contributed by < cantfindagoodname > quiz8 題目 測驗 1 void *memchr_opt(const void *src_void, int c, size_t length) { const unsigned char *src = (const unsigned char *) src_void;
     Like  Bookmark
  • contributed by < cantfindagoodname > 作業要求 實驗環境 $ cat /proc/version Linux version 5.13.0-30-generic (buildd@lcy02-amd64-003) (gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #33~20.04.1-Ubuntu SMP Mon Feb 7 14:25:10 UTC 2022 $ gcc --version gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
     Like  Bookmark
  • contributed by < cantfindagoodname > 作業要求 實驗環境 $ cat /proc/version Linux version 5.13.0-30-generic (buildd@lcy02-amd64-003) (gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #33~20.04.1-Ubuntu SMP Mon Feb 7 14:25:10 UTC 2022 $ gcc --version gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
     Like  Bookmark
  • contributed by < cantfindagoodname > 題目 實驗環境 $ cat /proc/version Linux version 5.13.0-30-generic (buildd@lcy02-amd64-003) (gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #33~20.04.1-Ubuntu SMP Mon Feb 7 14:25:10 UTC 2022 $ gcc --version gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
     Like  Bookmark