Saturday, October 12, 2019

Digest for comp.programming.threads@googlegroups.com - 9 updates in 2 topics

Bonita Montero <Bonita.Montero@gmail.com>: Oct 12 09:36AM +0200

Is there any guarantee the standard makes that random_device shoudn't
start at the same internal state for all new threads, i.e. the output
of the following code is likey to be different on both lines?
 
#include <iostream>
#include <mutex>
#include <random>
#include <thread>
 
using namespace std;
 
int main()
{
auto thr = []()
{
static mutex mtx;
random_device rd;
mtx.lock();
cout << rd() << endl;
mtx.unlock();
};
thread t1( thr );
thread t2( thr );
t1.join();
t2.join();
}
Melzzzzz <Melzzzzz@zzzzz.com>: Oct 12 07:39AM

> Is there any guarantee the standard makes that random_device shoudn't
> start at the same internal state for all new threads, i.e. the output
> of the following code is likey to be different on both lines?
 
No.
 
 
--
press any key to continue or any other to quit...
U ničemu ja ne uživam kao u svom statusu INVALIDA -- Zli Zec
Na divljem zapadu i nije bilo tako puno nasilja, upravo zato jer su svi
bili naoruzani. -- Mladen Gogala
Bonita Montero <Bonita.Montero@gmail.com>: Oct 12 09:40AM +0200

Oh, wrong newsgroup.
Bonita Montero <Bonita.Montero@gmail.com>: Oct 12 09:41AM +0200

>> start at the same internal state for all new threads, i.e. the output
>> of the following code is likey to be different on both lines?
 
> No.
 
Maybe, but I don't believe _you_ since you're an idiot.
Melzzzzz <Melzzzzz@zzzzz.com>: Oct 12 09:10AM

>>> of the following code is likey to be different on both lines?
 
>> No.
 
> Maybe, but I don't believe _you_ since you're an idiot.
 
I guess that highly depends on compiler and OS... why don't you try out?
 
--
press any key to continue or any other to quit...
U ničemu ja ne uživam kao u svom statusu INVALIDA -- Zli Zec
Na divljem zapadu i nije bilo tako puno nasilja, upravo zato jer su svi
bili naoruzani. -- Mladen Gogala
Bonita Montero <Bonita.Montero@gmail.com>: Oct 12 11:30AM +0200

>> Maybe, but I don't believe _you_ since you're an idiot.
 
> I guess that highly depends on compiler and OS...
> why don't you try out?
 
This wouldn't help answering my question.
Melzzzzz <Melzzzzz@zzzzz.com>: Oct 12 09:39AM


>> I guess that highly depends on compiler and OS...
>> why don't you try out?
 
> This wouldn't help answering my question.
You are stupid...
 
--
press any key to continue or any other to quit...
U ničemu ja ne uživam kao u svom statusu INVALIDA -- Zli Zec
Na divljem zapadu i nije bilo tako puno nasilja, upravo zato jer su svi
bili naoruzani. -- Mladen Gogala
Bonita Montero <Bonita.Montero@gmail.com>: Oct 12 11:42AM +0200

>>> why don't you try out?
 
>> This wouldn't help answering my question.
 
> You are stupid...
 
You are stupud because you don't understand that when a standard
library behaves like I wish it may not be portable because this
behaviour might not be specified. So it wouldn't be clever to
rely on this only because an implementation has this behaviour.
Boy, you're always telling stupid stuff. Stop writing about such
things; it's always embarrassing for you.
aminer68@gmail.com: Oct 11 05:46PM -0700

Hello,
 
 
Look at this very interesting video:
 
Michio Kaku - UFO's - The Evidence is Overwhelming
 
https://www.youtube.com/watch?v=X7pP2nH2jHI
 
 
 
Thank you,
Amine Moulay Ramdane.
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to comp.programming.threads+unsubscribe@googlegroups.com.

No comments: