Sorry for the much delayed response. I have not had enough time lately!
* Nitish Saboo [190508 05:48]:
> "Do you mean "log/syslog" from the standard library? What does
> initialize do?"
>
> >>I have installed syslog-ng parser on my Linux box and I am planning you
> use syslog-ng parser and wan
Apologies Marvin.
On Thu, May 9, 2019 at 6:53 PM Marvin Renich wrote:
> * Nitish Saboo [190508 05:48]:
>
> Please remove me from the CC on this thread; I am subscribed to the
> list. I explicitly set Reply-To, which was not respected, and now I am
> getting duplicates of every mail, with one c
* Nitish Saboo [190508 05:48]:
Please remove me from the CC on this thread; I am subscribed to the
list. I explicitly set Reply-To, which was not respected, and now I am
getting duplicates of every mail, with one copy in my personal mail and
one copy in my list mail folder. In general, it is a
I believe you can use lockOSThread to pin a processor to the current thread,
then use native code to pin the thread to a particular processor, change its
priority, etc. I haven’t tried it but I see no reason it wouldn’t work -
similar to how it’s not supported in Java but you can still do it - w
Hi Kurtis,
Thanks for the clarification .*i*nitialize_engine() is a C code and is
being called from go method 'initialize()'.
If you see my reply 2 mails before, '*i*nitialize_engine()` method starts a
syslog-ng engine but does not return the instance of it.
And therefore there was a confusion if
On Wed, May 8, 2019 at 10:17 PM Nitish Saboo
wrote:
> Yes, I want (exactly) two instances of syslog-ng engines running since I
> initialised the engine twice.And I guess it is possible only when the
> syslog-ng engines are running on two different processors.I might be wrong
> here, please correc
Hi Michael,
Yes, I want (exactly) two instances of syslog-ng engines running since I
initialised the engine twice.And I guess it is possible only when the
syslog-ng engines are running on two different processors.I might be wrong
here, please correct me if my understanding is not right.
My goal ri
Can you share a little more of your motivation for saying: “I want two
instances of syslog-ng engine running on two different processors.”
Do you mean (minimum) that you want two independent instances, or (maximum)
that you want to prove that there are two instances, two physical
processors, and t
Hi Marvin,
Thanks for your response.
"Do you mean "log/syslog" from the standard library? What does
initialize do?"
>>I have installed syslog-ng parser on my Linux box and I am planning you
use syslog-ng parser and wanted to initialise it's engine for parsing the
data.
so initialise() method i
Hi Marvin,
Thanks for your response.
"Do you mean "log/syslog" from the standard library? What does
initialize do?"
>>I have installed syslog-ng parser on my Linux box and I am planning you
use syslog-ng parser and wanted to initialise it's engine for parsing the
data.
so initialise() method i
* Nitish Saboo [190507 14:07]:
> Thanks Michel for your detailed response.
> I am initialising the syslog engine.
Do you mean "log/syslog" from the standard library? What does
initialize do?
> var obj1 parser = initalize()
> var obj2 parser
> go func() {
> obj2 = initalize()
> }()
You have in
Thanks Michel for your detailed response.
I am initialising the syslog engine.
var obj1 parser = initalize()
var obj2 parser
go func() {
obj2 = initalize()
}()
if obj1 engine fails:
go func() {
obj2.ReloadPattern(opts)
}()
My question is, will obj2.ReloadPattern reload the patte
If the only thing you want to achieve is:
main:
run engineA
run engineB
engineA:
do something
if engineB is down -> run engineB
engineB:
do something
if engineA is down -> run engineA
You don't really need the two processes to run on different cores, nor do
you need them to be constantly runnin
Hi Jan,
I need two separate parsing engines to be running and I feel that is
possible when it is running parallel on two different cores.
If operation on one of the parsing engine fails, I will reload the other
parsing engine and do the operation.This is what I want to achieve.
I thought goroutine
On Tue, May 7, 2019 at 11:27 AM Nitish Saboo wrote:
> I want to initialise parsing engines on two different processors.
Are goroutines meant where we read 'processors'? If not, than this
maybe is an XY problem[0] and please explain why you need distinct
CPUs to execute the code.
[0]: https://
Hi Michel,
I want to initialise parsing engines on two different processors.This I am
achieving in the following manner:
var obj1 parser = initalize()
var obj2 parser
go func() {
obj2 = initalize()
}()
Post this I want to reload the engine of obj2 parser, which I am trying to
achieve using the
I don't know of any primitives that would return the current processor the
goroutine is currently running on. Maybe if you explain more precisely what
you are trying to do, we can find a better solution?
@lgodio2 no, as Jan said, the go statement is not an expression, so you
can't assign with it,
Hi Michel,
Yes, this is what I was looking for.Thankyou..:)
Can we also find the processor on which this go routine is running?
Thanks
On Mon, 6 May 2019, 17:43 Michel Levieux, wrote:
> Hello,
>
> Is:
>
> type Y struct {
>
> M string
> N string
>
> }
>
> func initalize() Y{
> // I have a fun
Hello,
Is:
type Y struct {
M string
N string
}
func initalize() Y{
// I have a func that return an object ob type Y.
}
var obj1 Y
go func() {
obj1 = initalize()
}()
var obj2 Y
go func() {
obj2 = initalize()
}()
What you are looking for?
Le lun. 6 mai 2019 à 13:59, Jan Mercl <0xj...
On Mon, May 6, 2019 at 1:39 PM Nitish Saboo wrote:
> type Y struct {
>
> M string
> N string
>
> }
>
> func initalize() Y{
> // I have a func that return an object ob type Y.
> }
> var obj1 Y = go initalize()
No need to write Y above, the type will be inferred. However, see
https://golang.org/
Thanks Jan.
type Y struct {
M string
N string
}
func initalize() Y{
// I have a func that return an object ob type Y.
}
var obj1 Y = go initalize()
var obj2 Y = go initalize()
Let me know how to call a go routine in this case, because when I am doing
it in this way I am getting compilation
On Mon, May 6, 2019 at 1:11 PM Nitish Saboo wrote:
>
> Hi,
>
> I want a go method to run on multiple cores.The go method is returning an
> object. Can we achieve this using goroutine ?
> How can I achieve this ?
In the first approximation, to run a a function/method f() in a
goroutine on N cores
Hi,
I want a go method to run on multiple cores.The go method is returning an
object. Can we achieve this using goroutine ?
How can I achieve this ?
Thanks
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and sto
23 matches
Mail list logo