Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"

Liste des GroupesRevenir à l c 
Sujet : Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"
De : chris.m.thomasson.1 (at) *nospam* gmail.com (Chris M. Thomasson)
Groupes : comp.lang.c++ comp.lang.c
Date : 08. Mar 2024, 23:23:57
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <usfvld$1tfqm$2@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11
User-Agent : Mozilla Thunderbird
On 3/6/2024 2:18 PM, Chris M. Thomasson wrote:
On 3/6/2024 2:43 AM, David Brown wrote:
[...]
This is a fun one:
// pseudo code...
_______________________
node*
node_pop()
{
     // try per-thread lifo
     // try shared distributed lifo
     // try global region
     // if all of those failed, return nullptr
}
void
node_push(
      node* n
) {
     // if n came from our per-thread, try to push it into it...
     // if n came from another thread, try to push it into its thread...
     // if all of those failed, push into shared distributed lifo
}
_______________________
The fun part is this scheme can be realized as long as a node is at least the size of a pointer. That is the required overhead wrt the size of a node.

Date Sujet#  Auteur
8 Mar 24 * Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"4Chris M. Thomasson
9 Mar 24 `* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"3David Brown
10 Mar 24  `* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"2Chris M. Thomasson
10 Mar 24   `- Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"1Chris M. Thomasson

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal