Software Archive
Read-only legacy content

Go(lang) makes concurrency child's play?

Gaurav_Gogia
Beginner
626 Views

So I've been trying to write concurrent code for quite a while but I am not sure if I am making progress. I have this question that might be able to help me with other related ones. 

Sample code:

package main

import "fmt"

func main(){

    go test()

    go test()

   var in bool

   fmt.Scanln(&in)

}

test(){

fmt.Println("test")

}

// ********************************************************************

In the above code, is that all I need to do to achieve concurrency in Go? 

Thanks ^.^

0 Kudos
1 Solution
gaston-hillar
Valued Contributor I
626 Views

Gaurav,

Check the following link that provides information about qualification for free software for students: https://software.intel.com/en-us/qualify-for-free-software/student

Intel® Parallel Studio XE Cluster Edition (includes Fortran and C/C++) includes VTune

Not sure about how things work. I'm just providing you the link and you can perform some research based on the info on this link.

View solution in original post

0 Kudos
10 Replies
gaston-hillar
Valued Contributor I
626 Views

Gaurav,

Concurrency is not a child's play. Mastering concurrency is hard. Mastering software development is hard. However, there are many tools such as Intel Parallel Advisor that make it easier to master concurrency. :)

0 Kudos
Gaurav_Gogia
Beginner
626 Views

It's been a little hard to find resources / tutorials for concurrent programming. But when I saw that how I don't need to write threads and manage them in Go explicitly, I simply made my functions act like go-routines assuming that I've achieved concurrency. So, does Intel's IDE support Go or should I get something else for that? Or is there any documentation regarding concurrency in go that can help me optimize my programs?

Thanks in advance ^_^

0 Kudos
gaston-hillar
Valued Contributor I
626 Views

Hi Gaurav,

Intel® VTune Amplifier 2017 supports Go.

 

0 Kudos
gaston-hillar
Valued Contributor I
626 Views

Gaurav,

You can check the details about Intel® VTune Amplifier 2017 in the following link: https://software.intel.com/en-us/intel-vtune-amplifier-xe

 

0 Kudos
gaston-hillar
Valued Contributor I
626 Views

BTW, the following is a link with the documentation about support for the Go programming language: https://software.intel.com/en-us/node/712253

 

0 Kudos
Gaurav_Gogia
Beginner
627 Views

Hey Gaston,

Thanks for the resources. But Intel® VTune Amplifier 2017 is a little too expensive for me. Isn't there a student edition. I do believe, I have a student key with me but I am not sure how to use it here. 

0 Kudos
gaston-hillar
Valued Contributor I
627 Views

Gaurav,

First, you can work with the trial version to check whether Intel® VTune Amplifier 2017 provides value to you. You can download a free 30-day trial version.

0 Kudos
gaston-hillar
Valued Contributor I
627 Views

Gaurav,

Check the following link that provides information about qualification for free software for students: https://software.intel.com/en-us/qualify-for-free-software/student

Intel® Parallel Studio XE Cluster Edition (includes Fortran and C/C++) includes VTune

Not sure about how things work. I'm just providing you the link and you can perform some research based on the info on this link.

0 Kudos
Gaurav_Gogia
Beginner
627 Views

Well, I will see to it then. Thanks for your help though. Much appreciated ^_^ 

My friends told me Intel® VTune Amplifier 2017 really is amazing, lets see if it works for me too. 

0 Kudos
gaston-hillar
Valued Contributor I
627 Views

Gaurav,

It is great to know the info I've provided you is helpful. Your friend told you the truth. VTune Amplifier rocks.

0 Kudos
Reply